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 const fn new() -> CompositeExporter
pub const fn new() -> CompositeExporter
Construct an empty fan-out exporter.
Sourcepub fn with_exporter(
self,
exporter: Arc<dyn BatchExporter>,
) -> CompositeExporter
pub fn with_exporter( self, exporter: Arc<dyn BatchExporter>, ) -> CompositeExporter
Append an exporter to the fan-out sequence.
Trait Implementations§
Source§impl BatchExporter for CompositeExporter
impl BatchExporter for CompositeExporter
Source§fn retry_policy(&self) -> RetryPolicy
fn retry_policy(&self) -> RetryPolicy
Ordering required after a failed or cancelled export.
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more