Registry / observability / tracing-attributes

tracing-attributes

JSON →
library0.1.31rscratesunverified

Procedural macros for automatically instrumenting functions with tracing spans.

# Cargo.toml [dependencies] tracing-attributes = "0.1.31"
INSTALL
IMPORT
SIG · TRACING-ATTRIBUTES
T
tracing-attributes
observabilityrustv0.1.31
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

instrument
use tracing_attributes::instrument;

Instruments a function with a tracing span.

use tracing_attributes::instrument; #[instrument] fn my_function() { println!("Function called"); } fn main() { my_function(); }
Debug
Known issues
gotchaRequires the `tracing` crate as a dependency for the subscriber.
fix
Add `tracing` and a subscriber like `tracing-subscriber` to your Cargo.toml.
affects: >=0.1.0
Upgrade
Version history
0.1.31latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
tracing-attributes — cargo add tracing-attributes · libregistry