tracing-tree

Crates.iotracing-tree
lib.rstracing-tree
version0.4.0
sourcesrc
created_at2020-06-22 15:59:03.059905
updated_at2024-07-12 09:51:45.440159
descriptionA Tracing Layer which prints a tree of spans and events.
homepage
repositoryhttps://github.com/davidbarsky/tracing-tree
max_upload_size
id256779
size141,631
Oli Scherer (oli-obk)

documentation

README

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();
Commit count: 123

cargo fmt