pub struct PeriodicReaderBuilder<E> { /* private fields */ }
Expand description
Configuration options for PeriodicReader.
Implementations§
Source§impl<E> PeriodicReaderBuilder<E>where
E: PushMetricExporter,
impl<E> PeriodicReaderBuilder<E>where
E: PushMetricExporter,
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Configures the intervening time between exports for a PeriodicReader.
This option overrides any value set for the OTEL_METRIC_EXPORT_INTERVAL
environment variable.
If this option is not used or interval
is equal to zero, 60 seconds is
used as the default.
Sourcepub fn build(self) -> PeriodicReader
pub fn build(self) -> PeriodicReader
Create a PeriodicReader with the given config.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for PeriodicReaderBuilder<E>where
E: Freeze,
impl<E> RefUnwindSafe for PeriodicReaderBuilder<E>where
E: RefUnwindSafe,
impl<E> Send for PeriodicReaderBuilder<E>where
E: Send,
impl<E> Sync for PeriodicReaderBuilder<E>where
E: Sync,
impl<E> Unpin for PeriodicReaderBuilder<E>where
E: Unpin,
impl<E> UnwindSafe for PeriodicReaderBuilder<E>where
E: UnwindSafe,
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