Registry / observability / tracing-stackdriver

tracing-stackdriver

JSON →
library0.10.0rscratesunverified

Stackdriver-compatible tracing layer and event formatter for the tracing crate.

# Cargo.toml [dependencies] tracing-stackdriver = "0.10.0"
INSTALL
IMPORT
SIG · TRACING-STACKDRIVE
T
tracing-stackdriver
observabilityrustv0.10.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.

StackdriverLayer
use tracing_stackdriver::StackdriverLayer;

Initialize a Stackdriver-compatible tracing subscriber.

use tracing_stackdriver::StackdriverLayer; use tracing_subscriber::prelude::*; fn main() { let layer = StackdriverLayer::new(); tracing_subscriber::registry().with(layer).init(); tracing::info!("Hello, Stackdriver!"); }
Debug
Known issues
gotchaRequires the `tracing` crate and a subscriber registry.
fix
Add `tracing-subscriber` with the `registry` feature to your dependencies.
affects: >=0.10.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources
tracing-stackdriver — cargo add tracing-stackdriver · libregistry