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 0269fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/datasets/charts/datasets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ type: application

version: 0.1.0

appVersion: 0.1.0-rc1
appVersion: 0.1.0-rc2
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 0269fd5

Please sign in to comment.