pub struct TokioSpanExporter { /* private fields */ }Trait Implementations§
Source§impl Debug for TokioSpanExporter
impl Debug for TokioSpanExporter
Source§impl SpanExporter for TokioSpanExporter
impl SpanExporter for TokioSpanExporter
Source§async fn export(&self, batch: Vec<SpanData>) -> OTelSdkResult
async fn export(&self, batch: Vec<SpanData>) -> OTelSdkResult
Exports a batch of readable spans. Protocol exporters that will
implement this function are typically expected to serialize and transmit
the data to the destination. Read more
Source§fn shutdown(&mut self) -> OTelSdkResult
fn shutdown(&mut self) -> OTelSdkResult
Shuts down the exporter with default timeout.
Source§fn shutdown_with_timeout(&mut self, _timeout: Duration) -> OTelSdkResult
fn shutdown_with_timeout(&mut self, _timeout: Duration) -> OTelSdkResult
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 force_flush(&mut self) -> OTelSdkResult
fn force_flush(&mut self) -> OTelSdkResult
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
Source§fn set_resource(&mut self, _resource: &Resource)
fn set_resource(&mut self, _resource: &Resource)
Set the resource for the exporter.
Auto Trait Implementations§
impl Freeze for TokioSpanExporter
impl RefUnwindSafe for TokioSpanExporter
impl Send for TokioSpanExporter
impl Sync for TokioSpanExporter
impl Unpin for TokioSpanExporter
impl UnwindSafe for TokioSpanExporter
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