Skip to content

Commit 65dfc7a

Browse files
authored
Unblock shutdown_signal (#6)
1 parent 7db6c21 commit 65dfc7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,7 @@ macro_rules! init_tracing {
174174

175175
#[inline]
176176
pub fn shutdown_signal() {
177-
opentelemetry::global::shutdown_tracer_provider();
177+
std::thread::spawn(opentelemetry::global::shutdown_tracer_provider)
178+
.join()
179+
.unwrap();
178180
}

0 commit comments

Comments
 (0)