Enum opentelemetry::sdk::metrics::sdk_api::InstrumentKind
source · [−]pub enum InstrumentKind {
Histogram,
GaugeObserver,
Counter,
UpDownCounter,
CounterObserver,
UpDownCounterObserver,
}
metrics
only.Expand description
Kinds of OpenTelemetry metric instruments
Variants
Histogram
A histogram instrument
GaugeObserver
A gauge observer instrument
Counter
A synchronous per-request part of a monotonic sum.
UpDownCounter
A synchronous per-request part of a non-monotonic sum.
CounterObserver
An asynchronous per-interval recorder of a monotonic sum.
UpDownCounterObserver
An asynchronous per-interval recorder of a non-monotonic sum.
Implementations
sourceimpl InstrumentKind
impl InstrumentKind
sourcepub fn synchronous(&self) -> bool
pub fn synchronous(&self) -> bool
Whether this is a synchronous kind of instrument.
sourcepub fn asynchronous(&self) -> bool
pub fn asynchronous(&self) -> bool
Whether this is a synchronous kind of instrument.
sourcepub fn adding(&self) -> bool
pub fn adding(&self) -> bool
Whether this kind of instrument adds its inputs (as opposed to grouping).
sourcepub fn grouping(&self) -> bool
pub fn grouping(&self) -> bool
Whether this kind of instrument groups its inputs (as opposed to adding).
sourcepub fn precomputed_sum(&self) -> bool
pub fn precomputed_sum(&self) -> bool
Whether this kind of instrument receives precomputed sums.
Trait Implementations
sourceimpl Clone for InstrumentKind
impl Clone for InstrumentKind
sourcefn clone(&self) -> InstrumentKind
fn clone(&self) -> InstrumentKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstrumentKind
impl Debug for InstrumentKind
sourceimpl Hash for InstrumentKind
impl Hash for InstrumentKind
sourceimpl PartialEq<InstrumentKind> for InstrumentKind
impl PartialEq<InstrumentKind> for InstrumentKind
sourcefn eq(&self, other: &InstrumentKind) -> bool
fn eq(&self, other: &InstrumentKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for InstrumentKind
impl StructuralEq for InstrumentKind
impl StructuralPartialEq for InstrumentKind
Auto Trait Implementations
impl RefUnwindSafe for InstrumentKind
impl Send for InstrumentKind
impl Sync for InstrumentKind
impl Unpin for InstrumentKind
impl UnwindSafe for InstrumentKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.