Skip to main content

TracingBackend

Trait TracingBackend 

Source
pub trait TracingBackend: Send + Sync {
    // Required methods
    fn start_span(&self, span: &TraceSpan);
    fn end_span(&self, span: &TraceSpan);
    fn flush(&self);
}
Expand description

Backend for persisting/processing trace spans.

Required Methods§

Source

fn start_span(&self, span: &TraceSpan)

Called when a span starts.

Source

fn end_span(&self, span: &TraceSpan)

Called when a span ends.

Source

fn flush(&self)

Flush any buffered spans to storage.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§