#tracing #fluentd #forwarding #events #towards #tracing-subscriber #server

tracing-fluentd

Enables forwarding of tracing events towards the fluentd server

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

#598 in Debugging

BSL-1.0 license

35KB
734 lines

tracing-fluentd

Crates.io Documentation Build

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:

tracing for fluentd.

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
~60K SLoC