mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
initial commit
This commit is contained in:
18
crates/router/src/env.rs
Normal file
18
crates/router/src/env.rs
Normal file
@ -0,0 +1,18 @@
|
||||
#[doc(inline)]
|
||||
pub use router_env::*;
|
||||
pub mod logger {
|
||||
#[doc(inline)]
|
||||
pub use router_env::{log, logger::*};
|
||||
|
||||
///
|
||||
/// Setup logging sub-system.
|
||||
///
|
||||
// TODO (prom-monitoring): Ideally tracing/opentelementry structs shouldn't be pushed out
|
||||
// Find an abstraction so that source crate is unaware about underlying implementation
|
||||
// https://juspay.atlassian.net/browse/ORCA-345
|
||||
pub fn setup(
|
||||
conf: &config::Log,
|
||||
) -> Result<TelemetryGuard, router_env::opentelemetry::metrics::MetricsError> {
|
||||
router_env::setup(conf, "router", vec!["router", "actix_server"])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user