Skip to content

Commit 14a42cc

Browse files
committed
add test for noop shutdown
1 parent d3a557f commit 14a42cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opentelemetry-sdk/src/trace/provider.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ mod tests {
640640
// existing tracer becomes noops after shutdown
641641
let _ = test_tracer_1.start("test");
642642
assert!(assert_handle.started_span_count(2));
643+
644+
// also existing tracer's tracer provider are in shutdown state
645+
assert!(test_tracer_1.provider().is_shutdown());
643646
}
644647

645648
#[derive(Debug)]

0 commit comments

Comments
 (0)