9 releases
0.4.1 | Aug 14, 2024 |
---|---|
0.4.0 | Apr 27, 2023 |
0.3.3 | Apr 18, 2023 |
0.3.2 | Jan 12, 2023 |
0.1.4 | Jul 19, 2021 |
#518 in Debugging
189 downloads per month
35KB
734 lines
tracing-fluentd
Enables forwarding of tracing
events towards the fluentd
server.
Features
event_time
- Specifies to encode timestamp as EventTime instead of default unix timestamp
Example
use tracing_subscriber::layer::SubscriberExt;
let layer = tracing_fluentd::Builder::new("rust").flatten().layer().expect("Create layer");
let sub = tracing_subscriber::Registry::default().with(layer);
let guard = tracing::subscriber::set_default(sub);
lib.rs
:
Features
event_time
- Specifies to encode timestamp as EventTime instead of default unix timestamp
Example
use tracing_subscriber::layer::SubscriberExt;
let layer = tracing_fluentd::Builder::new("rust").flatten().layer().expect("Create layer");
let sub = tracing_subscriber::Registry::default().with(layer);
let guard = tracing::subscriber::set_default(sub);
Dependencies
~3.5MB
~61K SLoC