Trait sc_tracing::TraceHandler

source ·
pub trait TraceHandler: Send + Sync {
    // Required methods
    fn handle_span(&self, span: &SpanDatum);
    fn handle_event(&self, event: &TraceEvent);
}
Expand description

A handler for tracing SpanDatum

Required Methods§

source

fn handle_span(&self, span: &SpanDatum)

Process a SpanDatum.

source

fn handle_event(&self, event: &TraceEvent)

Process a TraceEvent.

Implementors§