pub struct SpanExporter { /* private fields */ }
Available on crate feature
trace
only.Expand description
An OpenTelemetry exporter that writes Spans to stdout on export.
Trait Implementations§
Source§impl Debug for SpanExporter
impl Debug for SpanExporter
Source§impl Default for SpanExporter
impl Default for SpanExporter
Source§impl SpanExporter for SpanExporter
impl SpanExporter for SpanExporter
Source§fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, ExportResult>
fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, ExportResult>
Write Spans to stdout
Source§fn 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
Source§fn set_resource(&mut self, res: &Resource)
fn set_resource(&mut self, res: &Resource)
Set the resource for the exporter.
Source§fn force_flush(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send>>
fn force_flush( &mut self, ) -> Pin<Box<dyn Future<Output = Result<(), TraceError>> + Send>>
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 !Freeze for SpanExporter
impl RefUnwindSafe for SpanExporter
impl Send for SpanExporter
impl Sync for SpanExporter
impl Unpin for SpanExporter
impl UnwindSafe for SpanExporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more