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

#19 in Debugging

Download history 37291/week @ 2025-01-28 40236/week @ 2025-02-04 38055/week @ 2025-02-11 40805/week @ 2025-02-18 39226/week @ 2025-02-25 41919/week @ 2025-03-04 43720/week @ 2025-03-11 39734/week @ 2025-03-18 37111/week @ 2025-03-25 42477/week @ 2025-04-01 43610/week @ 2025-04-08 45774/week @ 2025-04-15 46180/week @ 2025-04-22 44388/week @ 2025-04-29 43995/week @ 2025-05-06 33988/week @ 2025-05-13

176,459 downloads per month
Used in 54 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
~65K SLoC