pub trait SpanSink:
Send
+ Sync
+ 'static {
// Required method
fn on_span_end(&self, span: SpanRecord);
}Available on crate feature
tracing-layer only.Expand description
Receives each span when it closes. rlg_otlp::SpanExporter
implements it to send spans to a collector as OTLP traces.
It is called on the thread that closes the span, so an implementation must hand the record off without blocking.
Required Methods§
Sourcefn on_span_end(&self, span: SpanRecord)
fn on_span_end(&self, span: SpanRecord)
Takes ownership of a closed span.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".