pub fn flush_thread()Expand description
Flush this thread’s local event buffer into the global collected_events store.
Called automatically during shutdown. May also be called manually by threads
that are about to exit to ensure their events are captured before the thread
destructor runs.