pub fn init_in_memory_tracing() -> InMemoryTracingGuardExpand description
Initialize in-memory tracing for unit tests
§Important
Tests using this function MUST be marked with #[serial] since they
share global state through init_event_dispatch.
§Example
use micromegas_tracing::test_utils::init_in_memory_tracing;
use serial_test::serial;
// In your test file:
// #[test]
// #[serial]
fn test_example() {
let guard = init_in_memory_tracing();
// Use tracing macros: info!(), debug!(), span_scope!(), etc.
// Verify results in guard.sink.state
// Automatic cleanup when guard is dropped
}