Here's a concrete example using the "thread local storage in Drop" use case: OpenSpan<Attached>.The crate tracks the current tracing context in thread local storage and restores the previous on drop, so it can't be moved across threads.
13 Likes