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.
-
InterfacesClassDescriptionA reference to a batch callback registered via
Meter.batchCallback(Runnable, ObservableMeasurement, ObservableMeasurement...).A Counter instrument that recordsdoublevalues.Builder class forDoubleCounter.A gauge instrument that synchronously recordsdoublevalues.A builder for Gauge metric types.A Histogram instrument that recordsdoublevalues.Builder class forDoubleHistogram.An UpDownCounter instrument that recordsdoublevalues.Builder class forDoubleUpDownCounter.A Counter instrument that recordslongvalues.Builder class forLongCounter.A gauge instrument that synchronously recordslongvalues.A builder for Gauge metric types.A Histogram instrument that recordslongvalues.Builder class forLongHistogram.An UpDownCounter instrument that recordslongvalues.Builder class forLongUpDownCounter.Provides instruments used to record measurements which are aggregated to metrics.Builder class for creatingMeterinstances.A registry for creating namedMeters.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 withdoublevalues.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 withlongvalues.A reference to an observable metric registered withLongUpDownCounterBuilder.buildWithCallback(Consumer).Super interface for observing measurements.