Available on crate feature
metrics
only.Expand description
§OpenTelemetry Metrics API
Modules§
Structs§
- Atomic
Number - An atomic version of
Number
- Batch
Observer - An Observer callback that can report observations for multiple instruments.
- Batch
Observer Result - Passed to a batch observer callback to capture observations for multiple asynchronous instruments.
- Bound
Counter - BoundCounter is a bound instrument for counters.
- Bound
UpDown Counter - BoundUpDownCounter is a bound instrument for counters.
- Bound
Value Recorder - BoundValueRecorder is a bound instrument for recording per-request non-additive values.
- Counter
- A metric that accumulates values.
- Counter
Builder - Configuration for building a counter.
- Descriptor
- Descriptor contains all the settings that describe an instrument, including its name, metric kind, number kind, and the configurable options.
- Instrument
Config - Config contains some options for metrics of any kind.
- Measurement
- Measurement is used for reporting a synchronous batch of metric values.
Instances of this type should be created by synchronous instruments (e.g.,
Counter::measurement
). - Meter
- Meter is the OpenTelemetry metric API, based on a sdk-defined
MeterCore
implementation and theMeter
library name. - Number
- Number represents either an integral or a floating point value. It needs to be accompanied with a source of NumberKind that describes the actual type of the value stored within Number.
- Observation
- Observation is used for reporting an asynchronous batch of metric values. Instances of this type should be created by asynchronous instruments (e.g., ValueObserver::observation).
- Observer
Result - Data passed to an observer callback to capture observations for one asynchronous metric instrument.
- SumObserver
- A metric that captures a precomputed sum of values at a point in time.
- SumObserver
Builder - Configuration options for building a
SumObserver
- Unit
- Units denote underlying data units tracked by
Meter
s. - UpDown
Counter - A metric instrument that sums non-monotonic values.
- UpDown
Counter Builder - Configuration for a new up down counter.
- UpDown
SumObserver - A metric that captures a precomputed non-monotonic sum of values at a point in time.
- UpDown
SumObserver Builder - Configuration options for building a
UpDownSumObserver
- Value
Observer - A metric that captures a set of values at a point in time.
- Value
Observer Builder - Configuration options for building a
ValueObserver
- Value
Recorder - ValueRecorder is a metric that records per-request non-additive values.
- Value
Recorder Builder - Initialization configuration for a given
ValueRecorder
.
Enums§
- Async
Runner - Called when collecting async instruments
- Instrument
Kind - Kinds of OpenTelemetry metric instruments
- Metrics
Error - Errors returned by the metrics API.
- Number
Kind - A descriptor for the encoded data type of a
Number
Traits§
- Meter
Provider - Returns named meter instances
Type Aliases§
- Result
- A specialized
Result
type for metric operations.