Skip to content

Commit 278bfe2

Browse files
committed
Code changes
1 parent cb2fc2b commit 278bfe2

File tree

1 file changed

+3
-0
lines changed
  • opentelemetry-otlp/examples/basic-otlp-http/src

1 file changed

+3
-0
lines changed

opentelemetry-otlp/examples/basic-otlp-http/src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
7474
result.err()
7575
);
7676

77+
let tracer_provider = result.unwrap();
78+
global::set_tracer_provider(tracer_provider.clone());
79+
7780
let result = init_metrics();
7881
assert!(
7982
result.is_ok(),

0 commit comments

Comments
 (0)