21 releases

0.4.0 Jul 12, 2024
0.3.0 Nov 15, 2023
0.2.4 Jul 5, 2023
0.2.2 Nov 11, 2022
0.1.4 Jul 13, 2020

#34 in Debugging

Download history 38767/week @ 2024-10-22 36712/week @ 2024-10-29 36677/week @ 2024-11-05 37476/week @ 2024-11-12 37693/week @ 2024-11-19 37844/week @ 2024-11-26 40341/week @ 2024-12-03 41650/week @ 2024-12-10 37048/week @ 2024-12-17 28716/week @ 2024-12-24 31429/week @ 2024-12-31 41344/week @ 2025-01-07 41193/week @ 2025-01-14 36153/week @ 2025-01-21 37291/week @ 2025-01-28 32998/week @ 2025-02-04

154,375 downloads per month
Used in 52 crates (46 directly)

MIT/Apache

46KB
1K SLoC

tracing-tree

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

https://github.com/davidbarsky/tracing-tree/blob/483cc0a118c3170f4246d6fa4a9f018a00d8f0a9/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();

Dependencies

~1.3–8.5MB
~66K SLoC