Enum opentelemetry::metrics::InstrumentKind [−][src]
metrics
only.Kinds of OpenTelemetry metric instruments
Name | Instrument kind | Function(argument) | Default aggregation | Notes |
---|---|---|---|---|
ValueRecorder | Synchronous | Record(value) | MinMaxSumCount | Per-request, any non-additive measurement |
ValueObserver | Asynchronous | Observe(value) | MinMaxSumCount | Per-interval, any non-additive measurement |
Counter | Synchronous additive monotonic | Add(increment) | Sum | Per-request, part of a monotonic sum |
UpDownCounter | Synchronous additive | Add(increment) | Sum | Per-request, part of a non-monotonic sum |
SumObserver | Asynchronous additive monotonic | Observe(sum) | Sum | Per-interval, reporting a monotonic sum |
UpDownSumObserver | Asynchronous additive | Observe(sum) | Sum | Per-interval, reporting a non-monotonic sum |
Variants
A synchronous per-request recorder of non-additive measurements.
An asynchronous per-interval recorder of non-additive measurements.
A synchronous per-request part of a monotonic sum.
A synchronous per-request part of a non-monotonic sum.
An asynchronous per-interval recorder of a monotonic sum.
An asynchronous per-interval recorder of a non-monotonic sum.
Implementations
impl InstrumentKind
[src]
pub fn synchronous(&self) -> bool
[src]
Whether this is a synchronous kind of instrument.
pub fn asynchronous(&self) -> bool
[src]
Whether this is a synchronous kind of instrument.
pub fn adding(&self) -> bool
[src]
Whether this kind of instrument adds its inputs (as opposed to grouping).
pub fn grouping(&self) -> bool
[src]
Whether this kind of instrument groups its inputs (as opposed to adding).
pub fn monotonic(&self) -> bool
[src]
Whether this kind of instrument exposes a non-decreasing sum.
pub fn precomputed_sum(&self) -> bool
[src]
Whether this kind of instrument receives precomputed sums.
Trait Implementations
impl Clone for InstrumentKind
[src]
fn clone(&self) -> InstrumentKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InstrumentKind
[src]
impl Hash for InstrumentKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<InstrumentKind> for InstrumentKind
[src]
fn eq(&self, other: &InstrumentKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for InstrumentKind
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,