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 counter instrument that records
double
values.Builder class forDoubleCounter
.A builder for Gauge metric types.A histogram instrument that recordslong
values.Builder class forDoubleHistogram
.An up-down-counter 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 up-down-counter instrument that recordslong
values.Builder class forLongUpDownCounter
.Provides instruments used to produce metrics.Builder class for creatingMeter
instances.A registry for creating namedMeter
s.A reference to an observable metric registered withDoubleCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable metric registered withDoubleGaugeBuilder.buildWithCallback(Consumer)
.An interface for observing measurements withdouble
values.A reference to an observable metric registered withDoubleUpDownCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable metric registered withLongCounterBuilder.buildWithCallback(Consumer)
.A reference to an observable metric registered withLongGaugeBuilder.buildWithCallback(Consumer)
.An interface for observing measurements withlong
values.A reference to an observable metric registered withLongUpDownCounterBuilder.buildWithCallback(Consumer)
.