Expand description
Observability bootstrap (Arm 8): one tracing subscriber for the binaries.
The dispatcher’s hot path emits leveled tracing events instead of raw eprintln!/println!,
so per-dispatched-task narration is trace/debug and is filtered out at the default info
level — a high task rate no longer pays a synchronous, locked-stderr write per event
(KNOWN_ISSUES D-11). Verbosity is runtime-controlled via RUST_LOG (e.g. RUST_LOG=debug,
RUST_LOG=cortex=trace), so the detail is available on demand without a rebuild.
Functions§
- init_
cli_ tracing - Initializes the
tracingsubscriber for thecortexCLI. Likeinit_tracing(stderr,RUST_LOG-filtered, idempotent), but whenRUST_LOGis unset the level is driven by the CLI’s-v/-qflags rather than defaulting toinfo: - init_
tracing - Initializes the process-wide
tracingsubscriber: a plain stderr formatter filtered byRUST_LOG(defaultinfo). Idempotent and panic-free — usestry_init, so a second call (or a test that already installed a subscriber) is a no-op rather than a panic. Call once at the top of each binary’smain(the dispatcher and frontend; the CLI usesinit_cli_tracing).