tracing_sprout 0.1.0-alpha.6

A tokio-rs/tracing structured JSON formatting layer for the fledgling logger
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Metadata we're enhancing the spans with
pub(crate) const TIME: &str = "time";
pub(crate) const MESSAGE: &str = "msg";
pub(crate) const ELAPSED_MILLIS: &str = "elapsed_time_ms";
pub(crate) const TIME_SINCE_START: &str = "time_since_span_entered_ms";

/// Type of the span
pub(crate) const TYPE: &str = "span_type";

// Span Metadata
pub(crate) const LEVEL: &str = "level";
pub(crate) const TARGET: &str = "target";
pub(crate) const THREAD_ID: &str = "thread_id";
pub(crate) const THREAD_NAME: &str = "thread_name";