Enum opentelemetry::metrics::InstrumentKind [−][src]
pub enum InstrumentKind { ValueRecorder, ValueObserver, Counter, UpDownCounter, SumObserver, UpDownSumObserver, }
This is supported on crate feature
metrics
only.Expand description
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
Whether this is a synchronous kind of instrument.
Whether this is a synchronous kind of instrument.
Whether this kind of instrument adds its inputs (as opposed to grouping).
Whether this kind of instrument groups its inputs (as opposed to adding).
Whether this kind of instrument receives precomputed sums.
Trait Implementations
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
Mutably borrows from an owned value. Read more