tracing-utils: allow for explicit export config

This commit is contained in:
Vlad Lazar
2025-02-11 11:33:41 +01:00
parent a7f60dd5d0
commit a2b9ff0d40
3 changed files with 25 additions and 8 deletions

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(