ari-subscriber 0.0.2

Async Executor Instrumentation Observability Utility A tracing subscriber layer that outputs Tokio's tracing instrumentation to the terminal in a format conducive to debugging.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tracing_subscriber::prelude::*;

use ari_subscriber::Layer;

fn main() {
    let layer = Layer::new();

    tracing_subscriber::registry().with(layer).init();

    tracing::info!("a message");
    let _span1 = tracing::info_span!("span.info", mog = 4, gom = "cow").entered();
    tracing::debug!(field = "value", "my message");
    let _span2 = tracing::trace_span!("span.trace").entered();
    tracing::error!(field = "only one");
}