diff --git a/tracing/mainmatter-workshop/src/main.rs b/tracing/mainmatter-workshop/src/main.rs index ce991091..ab5fdd24 100644 --- a/tracing/mainmatter-workshop/src/main.rs +++ b/tracing/mainmatter-workshop/src/main.rs @@ -28,5 +28,13 @@ async fn main() -> io::Result<()> { .workers(2) .bind(("127.0.0.1", 8080))? .run() + .await?; + + actix_web::web::block(move || { + opentelemetry::global::shutdown_tracer_provider(); + }) .await + .unwrap(); + + Ok(()) }