#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

#609 in Debugging

Download history 24/week @ 2024-07-26 18/week @ 2024-08-02 105/week @ 2024-08-09 25/week @ 2024-08-16 13/week @ 2024-08-23 14/week @ 2024-08-30 2/week @ 2024-09-06 51/week @ 2024-09-13 58/week @ 2024-09-20 32/week @ 2024-09-27 16/week @ 2024-10-04

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