tracing-fluentd

Crates.iotracing-fluentd
lib.rstracing-fluentd
version0.4.1
sourcesrc
created_at2021-07-15 14:30:54.860877
updated_at2024-08-14 11:46:27.574869
descriptionEnables forwarding of `tracing` events towards the `fluentd` server.
homepage
repositoryhttps://github.com/DoumanAsh/tracing-fluentd
max_upload_size
id423108
size36,862
Douman (DoumanAsh)

documentation

README

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);
Commit count: 24

cargo fmt