Struct tracing_fluentd::Builder[][src]

pub struct Builder<F = NestedFmt, A = fn() -> Result<TcpStream>> { /* fields omitted */ }
Expand description

Builder to enable forwarding tracing events towards the fluentd server.

Type params

  • F - Attributes formatter, determines how to compose fluent::Record.
  • A - function that returns Fluentd wrter. Default is to create tcp socket towards 127.0.0.1:24224 with timeout of 1s.

Implementations

Creates default configuration.

Params:

tag - Event category to send for each record.

Configures to flatten span/metadata attributes within record. Instead of the default nesting behavior.

Provides callback to get writer where to write records.

Normally fluentd server expects connection to be closed immediately upon sending records. hence created writer is dropped immediately upon writing being finished.

Creates tracing layer.

Error can happen during creation of worker thread.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.