From 933092b9ae5c2edc54a65599f31e96b320e7b214 Mon Sep 17 00:00:00 2001 From: bsbds <69835502+bsbds@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:37:15 +0800 Subject: [PATCH] test: fix opentelemetry causes test hang https://github.com/open-telemetry/opentelemetry-rust/issues/1745 Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com> --- crates/utils/src/tracing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/utils/src/tracing.rs b/crates/utils/src/tracing.rs index 36f2c7d28..c4cd18721 100644 --- a/crates/utils/src/tracing.rs +++ b/crates/utils/src/tracing.rs @@ -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);