pub enum ExportKindSelector {
Cumulative,
Delta,
Stateless,
}
Available on crate feature
metrics
only.Expand description
Strategies for selecting which export kind is used for an instrument.
Variants§
Cumulative
A selector that always returns ExportKind::Cumulative
.
Delta
A selector that always returns ExportKind::Delta
.
Stateless
A selector that returns cumulative or delta based on a given instrument kind.
Trait Implementations§
Source§impl Clone for ExportKindSelector
impl Clone for ExportKindSelector
Source§fn clone(&self) -> ExportKindSelector
fn clone(&self) -> ExportKindSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExportKindSelector
impl Debug for ExportKindSelector
Source§impl ExportKindFor for ExportKindSelector
impl ExportKindFor for ExportKindSelector
Source§fn export_kind_for(&self, descriptor: &Descriptor) -> ExportKind
fn export_kind_for(&self, descriptor: &Descriptor) -> ExportKind
Determines the correct
ExportKind
that should be used when exporting data
for the given metric instrument.Auto Trait Implementations§
impl Freeze for ExportKindSelector
impl RefUnwindSafe for ExportKindSelector
impl Send for ExportKindSelector
impl Sync for ExportKindSelector
impl Unpin for ExportKindSelector
impl UnwindSafe for ExportKindSelector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.