Registry / observability / console-subscriber

console-subscriber

JSON →
library0.5.0rscratesunverified

A tracing-subscriber Layer for collecting Tokio console telemetry.

# Cargo.toml [dependencies] console-subscriber = "0.5.0"
INSTALL
IMPORT
SIG · CONSOLE-SUBSCRIBER
C
console-subscriber
observabilityrustv0.5.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.

ConsoleLayer
use console_subscriber::ConsoleLayer;

Initialize the Tokio console subscriber layer.

use console_subscriber::ConsoleLayer; #[tokio::main] async fn main() { let console_layer = ConsoleLayer::builder().spawn(); tracing_subscriber::registry().with(console_layer).init(); // Your async code here }
Debug
Known issues
gotchaRequires the `rt` feature of `tokio` and a running Tokio runtime.
fix
Ensure `tokio` is added with the `rt` feature and you are inside a `#[tokio::main]` or similar runtime context.
affects: >=0.1.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
console-subscriber — cargo add console-subscriber · libregistry