tracing-rust
Installation
SKILL.md
Tracing Rust
Use these conventions for instrumenting Rust applications with tokio-rs/tracing. Tracing provides structured, event-based diagnostic information through spans, events, and subscribers.
Source Baseline
- Prefer released docs from
docs.rs/tracing, crates.io, and the matching GitHub release. - Current stable:
tracing 0.1.41,tracing-subscriber 0.3.19,tracing-core 0.1.34. - MSRV: Rust 1.65+.
Cargo.toml
[dependencies]
tracing = "0.1"
# For subscribers and formatting — almost always needed
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }