@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.
-
Interface Summary Interface Description BatchCallback A reference to a batch callback registered viaMeter.batchCallback(Runnable, ObservableMeasurement, ObservableMeasurement...).DoubleCounter A Counter instrument that recordsdoublevalues.DoubleCounterBuilder Builder class forDoubleCounter.DoubleGauge A gauge instrument that synchronously recordsdoublevalues.DoubleGaugeBuilder A builder for Gauge metric types.DoubleHistogram A Histogram instrument that recordsdoublevalues.DoubleHistogramBuilder Builder class forDoubleHistogram.DoubleUpDownCounter An UpDownCounter instrument that recordsdoublevalues.DoubleUpDownCounterBuilder Builder class forDoubleUpDownCounter.LongCounter A Counter instrument that recordslongvalues.LongCounterBuilder Builder class forLongCounter.LongGauge A gauge instrument that synchronously recordslongvalues.LongGaugeBuilder A builder for Gauge metric types.LongHistogram A Histogram instrument that recordslongvalues.LongHistogramBuilder Builder class forLongHistogram.LongUpDownCounter An UpDownCounter instrument that recordslongvalues.LongUpDownCounterBuilder Builder class forLongUpDownCounter.Meter Provides instruments used to record measurements which are aggregated to metrics.MeterBuilder Builder class for creatingMeterinstances.MeterProvider A registry for creating namedMeters.ObservableDoubleCounter A reference to an observable instrument registered withDoubleCounterBuilder.buildWithCallback(Consumer).ObservableDoubleGauge A reference to an observable instrument registered withDoubleGaugeBuilder.buildWithCallback(Consumer).ObservableDoubleMeasurement An interface for observing measurements withdoublevalues.ObservableDoubleUpDownCounter A reference to an observable instrument registered withDoubleUpDownCounterBuilder.buildWithCallback(Consumer).ObservableLongCounter A reference to an observable instrument registered withLongCounterBuilder.buildWithCallback(Consumer).ObservableLongGauge A reference to an observable instrument registered withLongGaugeBuilder.buildWithCallback(Consumer).ObservableLongMeasurement An interface for observing measurements withlongvalues.ObservableLongUpDownCounter A reference to an observable metric registered withLongUpDownCounterBuilder.buildWithCallback(Consumer).ObservableMeasurement Super interface for observing measurements.