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

#20 in Debugging

Download history 28815/week @ 2024-12-23 30633/week @ 2024-12-30 40160/week @ 2025-01-06 41613/week @ 2025-01-13 35945/week @ 2025-01-20 37276/week @ 2025-01-27 39402/week @ 2025-02-03 39617/week @ 2025-02-10 39465/week @ 2025-02-17 38691/week @ 2025-02-24 42442/week @ 2025-03-03 43091/week @ 2025-03-10 40042/week @ 2025-03-17 38445/week @ 2025-03-24 40442/week @ 2025-03-31 43372/week @ 2025-04-07

165,944 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