pub struct NoopExporter;Expand description
A no-op exporter used when observability is disabled.
Trait Implementations§
Source§impl TraceExporter for NoopExporter
impl TraceExporter for NoopExporter
Source§fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
_trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
_trace: &'life1 Trace,
) -> Pin<Box<dyn Future<Output = Result<(), ExporterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a single trace to the backend.
Source§fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
traces: &'life1 [Trace],
) -> Pin<Box<dyn Future<Output = Vec<Result<(), ExporterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export a batch of traces (default: loop over
export).Auto Trait Implementations§
impl Freeze for NoopExporter
impl RefUnwindSafe for NoopExporter
impl Send for NoopExporter
impl Sync for NoopExporter
impl Unpin for NoopExporter
impl UnsafeUnpin for NoopExporter
impl UnwindSafe for NoopExporter
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