Why does tracing's with_default require Send + Sync?

According to with_default's docs, it only sets the default subscriber for the current thread for the duration of a closure, so why does it require it to be Send and Sync?

Part of the reason is because it's built on the Dispatch type, which constrains the subscriber with Send + Sync: tracing/tracing-core/src/dispatcher.rs at tracing-core-0.1.33 ยท tokio-rs/tracing

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.