pub fn start_trace_observer(callback: extern "C" fn())
Start a thread that calls the provided callback when trace state changes.