logo
pub enum BatchMessage {
    ExportSpan(SpanData),
    Flush(Option<Sender<Result<(), TraceError>>>),
    Shutdown(Sender<Result<(), TraceError>>),
}
Available on crate feature trace only.
Expand description

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

Variants

ExportSpan(SpanData)

Export spans, usually called when span ends

Flush(Option<Sender<Result<(), TraceError>>>)

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

Shutdown(Sender<Result<(), TraceError>>)

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

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.