pub struct NoopSpanExporter { /* private fields */ }Expand description
A no-op instance of an SpanExporter.
Implementations§
Trait Implementations§
Source§impl Debug for NoopSpanExporter
impl Debug for NoopSpanExporter
Source§impl Default for NoopSpanExporter
impl Default for NoopSpanExporter
Source§fn default() -> NoopSpanExporter
fn default() -> NoopSpanExporter
Returns the “default value” for a type. Read more
Source§impl SpanExporter for NoopSpanExporter
impl SpanExporter for NoopSpanExporter
Source§async fn export(&self, _: Vec<SpanData>) -> OTelSdkResult
async fn export(&self, _: 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_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 shutdown(&mut self) -> OTelSdkResult
fn shutdown(&mut self) -> OTelSdkResult
Shuts down the exporter with default timeout.
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 NoopSpanExporter
impl RefUnwindSafe for NoopSpanExporter
impl Send for NoopSpanExporter
impl Sync for NoopSpanExporter
impl Unpin for NoopSpanExporter
impl UnwindSafe for NoopSpanExporter
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