Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing()
Expand description

Initialize tracing with tracing-forest’s tree-formatted profiling output.

Installs a [ForestLayer], which prints a timing tree (span durations and their share of the total) for each root span as it closes. This replaces the human-readable PrintTreeLayer from tracing-profile.

Span verbosity defaults to DEBUG and can be overridden with RUST_LOG (e.g. RUST_LOG=binius=trace), matching the previous behavior.

Calling this when a global subscriber is already installed is a no-op, so it is safe to invoke from every example entry point.