pub fn register_trace_flush_hook(f: fn())
Register a flush callback. Called once during tracing initialization.