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§
sourcefn handle_span(&self, span: &SpanDatum)
fn handle_span(&self, span: &SpanDatum)
Process a SpanDatum
.
sourcefn handle_event(&self, event: &TraceEvent)
fn handle_event(&self, event: &TraceEvent)
Process a TraceEvent
.