Struct opentelemetry_stdout::SpanExporter
source · 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