MCPcopy Index your code
hub / github.com/davidbarsky/tracing-tree

github.com/davidbarsky/tracing-tree @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
125 symbols 289 edges 19 files 17 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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();

Extension points exported contracts — how you extend this code

FormatTime (Interface)
A type that can measure and format the current time. This trait is used by [HierarchicalLayer] to include a timestamp w [6 …
src/time.rs

Core symbols most depended-on inside this repo

with_writer
called by 13
src/lib.rs
with_indent_amount
called by 13
src/lib.rs
with_indent_lines
called by 12
src/lib.rs
with_targets
called by 12
src/lib.rs
with_thread_ids
called by 12
src/lib.rs
with_thread_names
called by 12
src/lib.rs
with_verbose_entry
called by 9
src/lib.rs
with_verbose_exit
called by 8
src/lib.rs

Shape

Method 60
Function 47
Class 16
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/lib.rs35 symbols
src/format.rs28 symbols
src/time.rs12 symbols
examples/concurrent_eager.rs7 symbols
tests/format_time.rs6 symbols
tests/recursive_event.rs4 symbols
examples/stderr.rs3 symbols
examples/quiet.rs3 symbols
examples/no-indent.rs3 symbols
examples/deferred.rs3 symbols
examples/concurrent_verbose.rs3 symbols
examples/concurrent.rs3 symbols

For agents

$ claude mcp add tracing-tree \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact