Crate tracing_fluentd

Source
Expand description

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);

Modules§

fluent
Fluentd forward protocol definitions.

Structs§

Builder
Builder to enable forwarding tracing events towards the fluentd server.
FlattenFmt
Policy to insert span data as flattent object.
FlushingGuard
Guard that flushes and terminates fluentd worker.
Layer
tracing’s Layer
NestedFmt
Policy to insert span data as object.

Traits§

FieldFormatter
Describes how compose event fields.
MakeWriter
Describers creation of sink for tracing record.