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

#32 in Debugging

Download history 36170/week @ 2024-09-22 32444/week @ 2024-09-29 35869/week @ 2024-10-06 34879/week @ 2024-10-13 39313/week @ 2024-10-20 36982/week @ 2024-10-27 37032/week @ 2024-11-03 36537/week @ 2024-11-10 38691/week @ 2024-11-17 36524/week @ 2024-11-24 40301/week @ 2024-12-01 40738/week @ 2024-12-08 39865/week @ 2024-12-15 27973/week @ 2024-12-22 31535/week @ 2024-12-29 34813/week @ 2025-01-05

137,989 downloads per month
Used in 47 crates (41 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
~67K SLoC