Enum opentelemetry::sdk::metrics::sdk_api::InstrumentKind
source · pub enum InstrumentKind {
Histogram,
GaugeObserver,
Counter,
UpDownCounter,
CounterObserver,
UpDownCounterObserver,
}
Available on crate feature
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§
source§impl 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§
source§impl Clone for InstrumentKind
impl Clone for InstrumentKind
source§fn clone(&self) -> InstrumentKind
fn clone(&self) -> InstrumentKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstrumentKind
impl Debug for InstrumentKind
source§impl Hash for InstrumentKind
impl Hash for InstrumentKind
source§impl PartialEq<InstrumentKind> for InstrumentKind
impl PartialEq<InstrumentKind> for InstrumentKind
source§fn 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 ==
.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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.