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

Download history 22/week @ 2024-05-20 9/week @ 2024-05-27 10/week @ 2024-06-03 8/week @ 2024-06-10 32/week @ 2024-06-17 42/week @ 2024-06-24 33/week @ 2024-07-01 23/week @ 2024-07-08 8/week @ 2024-07-15 22/week @ 2024-07-22 25/week @ 2024-07-29 19/week @ 2024-08-05 123/week @ 2024-08-12

189 downloads per month

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