pub struct Exporter<W>where
W: Write,{ /* private fields */ }
Available on crate feature
trace
only.Expand description
A SpanExporter
that writes to Stdout
or other configured Write
.
Implementations
Trait Implementations
sourceimpl<W> SpanExporter for Exporter<W>where
W: 'static + Write + Debug + Send,
impl<W> SpanExporter for Exporter<W>where
W: 'static + Write + Debug + Send,
sourcefn export(
&mut self,
batch: Vec<SpanData, Global>
) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send + 'static, Global>>
fn export(
&mut self,
batch: Vec<SpanData, Global>
) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send + 'static, Global>>
Export spans to stdout
sourcefn shutdown(&mut self)
fn shutdown(&mut self)
Shuts down the exporter. Called when SDK is shut down. This is an opportunity for exporter to do any cleanup required. Read more
sourcefn force_flush(
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send + 'static, Global>>
fn force_flush(
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send + 'static, Global>>
This is a hint to ensure that the export of any Spans the exporter has received prior to the call to this function SHOULD be completed as soon as possible, preferably before returning from this method. Read more
Auto Trait Implementations
impl<W> RefUnwindSafe for Exporter<W>where
W: RefUnwindSafe,
impl<W> Send for Exporter<W>where
W: Send,
impl<W> Sync for Exporter<W>where
W: Sync,
impl<W> Unpin for Exporter<W>where
W: Unpin,
impl<W> UnwindSafe for Exporter<W>where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more