Enum opentelemetry_sdk::metrics::InstrumentKind
source · pub enum InstrumentKind {
Counter,
UpDownCounter,
Histogram,
ObservableCounter,
ObservableUpDownCounter,
Gauge,
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.
Gauge
a group of instruments that record current value synchronously with the code path they are measuring.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
impl Copy for InstrumentKind
impl Eq for InstrumentKind
impl StructuralPartialEq for InstrumentKind
Auto Trait Implementations§
impl Freeze for InstrumentKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)