Enum opentelemetry::sdk::trace::BatchMessage[][src]

pub enum BatchMessage {
    ExportSpan(SpanData),
    Flush(Option<Sender<ExportResult>>),
    Shutdown(Sender<ExportResult>),
}
This is supported on crate feature trace only.
Expand description

Messages sent between application thread and batch span processor’s work thread.

Variants

ExportSpan

Export spans, usually called when span ends

Tuple Fields of ExportSpan

0: SpanData
Flush

Flush the current buffer to the backend, it can be triggered by pre configured interval or a call to force_push function.

Tuple Fields of Flush

0: Option<Sender<ExportResult>>
Shutdown

Shut down the worker thread, push all spans in buffer to the backend.

Tuple Fields of Shutdown

0: Sender<ExportResult>

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.