Skip to content

Commit

Permalink
Tracing propogation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Apr 2, 2024
1 parent 587638f commit 8cdee29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datasets/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ fn setup_telemetry(
),
]);
let (metrics_layer, tracing_layer) = if let Some(otel_collector_url) = otel_collector_url {
opentelemetry::global::set_text_map_propagator(
opentelemetry_sdk::propagation::TraceContextPropagator::default(),
);
(
Some(tracing_opentelemetry::MetricsLayer::new(
opentelemetry_otlp::new_pipeline()
Expand Down

0 comments on commit 8cdee29

Please sign in to comment.