rustc/vendor/tracing-tree-0.3.1/README.md
2024-09-09 14:07:22 +02:00

678 B

tracing-tree

Instrument your application with tracing and get tree-structured summaries of your application activity with timing information on the console:

483cc0a118/examples/quiet.stdout (L1-L28)

(Format inspired by slog-term)

Setup

After instrumenting your app with tracing, add this subscriber like this:

let subscriber = Registry::default().with(HierarchicalLayer::new(2));
tracing::subscriber::set_global_default(subscriber).unwrap();