Enum opentelemetry::sdk::metrics::InstrumentKind
source · pub enum InstrumentKind {
Counter,
UpDownCounter,
Histogram,
ObservableCounter,
ObservableUpDownCounter,
ObservableGauge,
}
Expand description
The identifier of a group of instruments that all perform the same function.
Variants§
Counter
Identifies a group of instruments that record increasing values synchronously with the code path they are measuring.
UpDownCounter
A group of instruments that record increasing and decreasing values synchronously with the code path they are measuring.
Histogram
A group of instruments that record a distribution of values synchronously with the code path they are measuring.
ObservableCounter
A group of instruments that record increasing values in an asynchronous callback.
ObservableUpDownCounter
A group of instruments that record increasing and decreasing values in an asynchronous callback.
ObservableGauge
a group of instruments that record current values in an asynchronous callback.
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 for InstrumentKind
impl PartialEq 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 Copy for InstrumentKind
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<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<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.