pub struct CompositeExporter { /* private fields */ }Expand description
Fan-out exporter for logs, billing, analytics, and audit sinks.
Exporters run in registration order. If one fails, a later retry starts from
the first exporter. Provider implementations must therefore honor the stable
aggregate identifiers, as required by BatchExporter.
Implementations§
Source§impl CompositeExporter
impl CompositeExporter
Sourcepub fn with_exporter(self, exporter: SharedExporter) -> Self
pub fn with_exporter(self, exporter: SharedExporter) -> Self
Append an exporter to the fan-out sequence.
Trait Implementations§
Source§impl BatchExporter for CompositeExporter
impl BatchExporter for CompositeExporter
Source§fn export<'a>(&'a self, batch: &'a [AggregatedUsage]) -> ExportFuture<'a>
fn export<'a>(&'a self, batch: &'a [AggregatedUsage]) -> ExportFuture<'a>
Export every aggregate in
batch. Read moreSource§impl Debug for CompositeExporter
impl Debug for CompositeExporter
Source§impl Default for CompositeExporter
impl Default for CompositeExporter
Source§fn default() -> CompositeExporter
fn default() -> CompositeExporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CompositeExporter
impl !UnwindSafe for CompositeExporter
impl Freeze for CompositeExporter
impl Send for CompositeExporter
impl Sync for CompositeExporter
impl Unpin for CompositeExporter
impl UnsafeUnpin for CompositeExporter
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