Skip to content

Commit

Permalink
test: fix opentelemetry causes test hang
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbds committed Oct 12, 2024
1 parent 2b47694 commit 933092b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/utils/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mod test {
let provider = opentelemetry_otlp::new_pipeline()
.tracing()
.with_exporter(otlp_exporter)
.install_simple()?;
.install_batch(opentelemetry_sdk::runtime::Tokio)?;
global::set_tracer_provider(provider.clone());
let tracer = provider.tracer("xline");
let jaeger_online_layer = tracing_opentelemetry::layer().with_tracer(tracer);
Expand Down

0 comments on commit 933092b

Please sign in to comment.