Registry / observability / sp-tracing

sp-tracing

JSON →
library19.0.0rscratesunverified

Instrumentation primitives and macros for tracing in Substrate-based blockchains.

# Cargo.toml [dependencies] sp-tracing = "19.0.0"
INSTALL
IMPORT
SIG · SP-TRACING
S
sp-tracing
observabilityrustv19.0.0
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.

enter_span
✓ use sp_tracing::enter_span;

Create and enter a tracing span for performance instrumentation.

use sp_tracing::enter_span; fn main() { let span = enter_span!("my_span"); // ... do work ... drop(span); }
Debug
Known issues
gotchaRequires the 'std' feature for full functionality; may not work in no-std environments without additional setup.
fix
Enable the 'std' feature in your Cargo.toml or use conditional compilation for no-std targets.
affects: >=19.0.0
Upgrade
Version history
19.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
2
Resources
sp-tracing — cargo add sp-tracing · libregistry