pub struct PullController { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Pull controllers are typically used in an environment where there are
multiple readers. It is common, therefore, when configuring a
BasicProcessor
for use with this controller, to use a
ExportKind::Cumulative
strategy and the with_memory(true)
builder
option, which ensures that every CheckpointSet
includes full state.
Implementations§
Trait Implementations§
Source§impl CheckpointSet for PullController
impl CheckpointSet for PullController
Source§fn try_for_each(
&mut self,
export_selector: &dyn ExportKindFor,
f: &mut dyn FnMut(&Record<'_>) -> Result<()>,
) -> Result<()>
fn try_for_each( &mut self, export_selector: &dyn ExportKindFor, f: &mut dyn FnMut(&Record<'_>) -> Result<()>, ) -> Result<()>
This iterates over aggregated checkpoints for all metrics that were updated
during the last collection period. Each aggregated checkpoint returned by
the function parameter may return an error. Read more
Auto Trait Implementations§
impl Freeze for PullController
impl !RefUnwindSafe for PullController
impl Send for PullController
impl Sync for PullController
impl Unpin for PullController
impl !UnwindSafe for PullController
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.