Enum opentelemetry::sdk::trace::BatchMessage
source · pub enum BatchMessage {
ExportSpan(SpanData),
Flush(Option<Sender<ExportResult>>),
Shutdown(Sender<ExportResult>),
}
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<ExportResult>>)
Flush the current buffer to the backend, it can be triggered by
pre configured interval or a call to force_push
function.
Shutdown(Sender<ExportResult>)
Shut down the worker thread, push all spans in buffer to the backend.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BatchMessage
impl Send for BatchMessage
impl Sync for BatchMessage
impl Unpin for BatchMessage
impl !UnwindSafe for BatchMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more