Skip to main content

Exporter

Trait Exporter 

Source
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§

Source

fn export(&self, spans: &[SpanData])

Provided Methods§

Source

fn shutdown(&self)

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.

Source§

fn export(&self, spans: &[SpanData])

Implementors§