tracing-utils: allow for explicit export config

This commit is contained in:
Vlad Lazar
2025-03-07 17:44:05 +01:00
parent a7f60dd5d0
commit a2b9ff0d40
3 changed files with 25 additions and 8 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ pub async fn init() -> anyhow::Result<LoggingGuard> {
.expect("this should be a valid filter directive"),
);
let otlp_layer = tracing_utils::init_tracing("proxy").await;
let otlp_layer =
tracing_utils::init_tracing("proxy", tracing_utils::ExportConfig::default()).await;
let json_log_layer = if logfmt == LogFormat::Json {
Some(JsonLoggingLayer::new(