mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:06:20 +00:00
678 B
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();