pub trait Exporter: Send + Sync {
// Required method
fn export(&self, spans: &[SpanData]);
// Provided method
fn shutdown(&self) { ... }
}Expand description
Destination for completed spans.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Exporter for Arc<CapturingExporter>
Lets a shared, externally-held Arc<CapturingExporter> be handed to
setup_with_exporter (which takes ownership of a Box<dyn Exporter>)
while the caller keeps its own handle to call CapturingExporter::take
afterward.
impl Exporter for Arc<CapturingExporter>
Lets a shared, externally-held Arc<CapturingExporter> be handed to
setup_with_exporter (which takes ownership of a Box<dyn Exporter>)
while the caller keeps its own handle to call CapturingExporter::take
afterward.