Module metrics
Available on crate feature
opentelemetry
only.Expand description
§OpenTelemetry Metrics API
Traits§
- Instrument
Provider - SDK implemented trait for creating instruments
Structs§
- Counter
- An instrument that records increasing values.
- Observable
Counter - An async instrument that records increasing values.
- Gauge
- An instrument that records independent values
- Observable
Gauge - An async instrument that records independent readings.
- Histogram
- An instrument that records a distribution of values.
- Observable
UpDown Counter - An async instrument that records increasing or decreasing values.
- UpDown
Counter - An instrument that records increasing or decreasing values.
Traits§
- Async
Instrument - An SDK implemented instrument that records measurements via callback.
Structs§
- Async
Instrument Builder - Configuration for building an async instrument.
Type Aliases§
- Callback
- A function registered with a Meter that makes observations for the instruments it is registered with.
Structs§
- Histogram
Builder - Configuration for building a Histogram.
- Instrument
Builder - Configuration for building a sync instrument.
Traits§
- Sync
Instrument - An SDK implemented instrument that records measurements synchronously.
Structs§
- Meter
- Provides the ability to create instruments for recording measurements or accepting callbacks to report measurements.
Traits§
- Meter
Provider - Provides access to named Meter instances, for instrumenting an application or crate.