Skip to content

Commit

Permalink
Fix telemetry spans collection
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeschastny committed Jan 16, 2024
1 parent 21f6d7c commit a0f1b6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ where
.pretty()
.with_line_number(true)
.with_thread_names(true)
.with_timer(tracing_subscriber::fmt::time::uptime())
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE)
.with_timer(tracing_subscriber::fmt::time::uptime()),
.with_writer(std::io::stdout.with_max_level(log_level)),
)
} else {
Box::new(
Expand All @@ -144,7 +145,7 @@ pub fn init_tracing_with_fallbacks(
propagation::TextMapSplitPropagator::default(),
);

let level_filter: LevelFilter = max(log_level, tracing::Level::INFO).into();
let level_filter: LevelFilter = max(log_level, tracing::Level::TRACE).into();
let subscriber = tracing_subscriber::registry()
.with(level_filter)
.with(build_logger_text(log_level));
Expand Down

0 comments on commit a0f1b6c

Please sign in to comment.