Module metrics

Available on crate feature opentelemetry only.
Expand description

§OpenTelemetry Metrics API

Traits§

InstrumentProvider
SDK implemented trait for creating instruments

Structs§

Counter
An instrument that records increasing values.
ObservableCounter
An async instrument that records increasing values.
Gauge
An instrument that records independent values
ObservableGauge
An async instrument that records independent readings.
Histogram
An instrument that records a distribution of values.
ObservableUpDownCounter
An async instrument that records increasing or decreasing values.
UpDownCounter
An instrument that records increasing or decreasing values.

Traits§

AsyncInstrument
An SDK implemented instrument that records measurements via callback.

Structs§

AsyncInstrumentBuilder
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§

HistogramBuilder
Configuration for building a Histogram.
InstrumentBuilder
Configuration for building a sync instrument.

Traits§

SyncInstrument
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§

MeterProvider
Provides access to named Meter instances, for instrumenting an application or crate.