Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing(cli: &Cli)
Expand description

Install the global tracing subscriber once for this process.

Writes to stderr with EnvFilter from RUST_LOG or CLI verbosity. Idempotent: a second call (integration tests re-enter run_with_io) is a no-op so the first install wins for the process lifetime.

Does not return a WorkerGuard: the writer is stderr (no background appender thread). FINALIZE still flushes stdio via crate::shutdown::flush_stdio.