pub fn has_thread_stream() -> bool
Whether the current thread has a registered thread stream, i.e. whether its thread events are recorded.