Package io.opentelemetry.api.metrics
@ParametersAreNonnullByDefault
package io.opentelemetry.api.metrics
This package describes the Metrics API that can be used to record application Metrics.
The primary entry point to Metrics is the MeterProvider
,
which allows the construction of a Meter
. Instrumentated
libraries should construct a single Meter
and register
`instruments` via the builders available on Meter
.
There is a global instance of MeterProvider
available for
scenarios where instrumentation authors are unable to obtain one by other means.
-
ClassDescriptionA reference to a batch callback registered via
Meter.batchCallback(Runnable, ObservableMeasurement, ObservableMeasurement...)
.A Counter instrument that recordsdouble
values.Builder class forDoubleCounter
.A builder for Gauge metric types.A Histogram instrument that recordsdouble
values.Builder class forDoubleHistogram
.An UpDownCounter instrument that recordsdouble
values.Builder class forDoubleUpDownCounter
.A Counter instrument that recordslong
values.Builder class forLongCounter
.A builder for Gauge metric types.A Histogram instrument that recordslong
values.Builder class forLongHistogram
.An UpDownCounter instrument that recordslong
values.Builder class forLongUpDownCounter
.Provides instruments used to record measurements which are aggregated to metrics.Builder class for creatingMeter
instances.A registry for creating namedMeter
s.A reference to an observable instrument registered withDoubleCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable instrument registered withDoubleGaugeBuilder.buildWithCallback(Consumer)
.An interface for observing measurements withdouble
values.A reference to an observable instrument registered withDoubleUpDownCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable instrument registered withLongCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable instrument registered withLongGaugeBuilder.buildWithCallback(Consumer)
.An interface for observing measurements withlong
values.A reference to an observable metric registered withLongUpDownCounterBuilder.buildWithCallback(Consumer)
.Super interface for observing measurements.