@ParametersAreNonnullByDefault
Package io.opentelemetry.api.metrics
This package describes the Metrics API that can be used to record application Metrics.
-
Interface Summary Interface Description AsynchronousInstrument AsynchronousInstrument
is an interface that defines a type of instruments that are used to report measurements asynchronously.AsynchronousInstrument.DoubleResult The result pass to the updater.AsynchronousInstrument.LongResult The result pass to the updater.AsynchronousInstrumentBuilder<R> Builder class forAsynchronousInstrument
.BatchRecorder Util class that can be use to atomically record measurements associated with a set of Metrics.BoundDoubleCounter ABound Instrument
for aDoubleCounter
.BoundDoubleUpDownCounter ABound Instrument
for aDoubleUpDownCounter
.BoundDoubleValueRecorder ABound Instrument
for aDoubleValueRecorder
.BoundLongCounter ABound Instrument
for aLongCounter
.BoundLongUpDownCounter ABound Instrument
for aLongUpDownCounter
.BoundLongValueRecorder ABound Instrument
for aLongValueRecorder
.DoubleCounter Counter is the most common synchronous instrument.DoubleCounterBuilder Builder class forDoubleCounter
.DoubleSumObserver SumObserver
is the asynchronous instrument corresponding to Counter, used to capture a monotonic sum with Observe(sum).DoubleSumObserverBuilder Builder class forDoubleSumObserver
.DoubleUpDownCounter UpDownCounter is a synchronous instrument and very similar to Counter except that Add(increment) supports negative increments.DoubleUpDownCounterBuilder Builder class forDoubleUpDownCounter
.DoubleUpDownSumObserver UpDownSumObserver is the asynchronous instrument corresponding to UpDownCounter, used to capture a non-monotonic count with Observe(sum).DoubleUpDownSumObserverBuilder Builder class forDoubleUpDownSumObserver
.DoubleValueObserver ValueObserver
is the asynchronous instrument corresponding to ValueRecorder, used to capture values that are treated as individual observations, recorded with the observe(value) method.DoubleValueObserverBuilder Builder class forDoubleValueObserver
.DoubleValueRecorder ValueRecorder is a synchronous instrument useful for recording any number, positive or negative.DoubleValueRecorderBuilder Builder class forDoubleValueRecorder
.Instrument Base interface for all metrics defined in this package.InstrumentBuilder TheBuilder
class for theInstrument
.LongCounter Counter is the most common synchronous instrument.LongCounterBuilder Builder class forLongCounter
.LongSumObserver SumObserver
is the asynchronous instrument corresponding to Counter, used to capture a monotonic sum with Observe(sum).LongSumObserverBuilder Builder class forLongSumObserver
.LongUpDownCounter UpDownCounter is a synchronous instrument and very similar to Counter except that Add(increment) supports negative increments.LongUpDownCounterBuilder Builder class forLongUpDownCounter
.LongUpDownSumObserver UpDownSumObserver is the asynchronous instrument corresponding to UpDownCounter, used to capture a non-monotonic count with Observe(sum).LongUpDownSumObserverBuilder Builder class forLongUpDownSumObserver
.LongValueObserver ValueObserver
is the asynchronous instrument corresponding to ValueRecorder, used to capture values that are treated as individual observations, recorded with the observe(value) method.LongValueObserverBuilder Builder class forLongValueObserver
.LongValueRecorder ValueRecorder is a synchronous instrument useful for recording any number, positive or negative.LongValueRecorderBuilder Builder class forLongValueRecorder
.Meter Meter is a simple, interface that allows users to record measurements (metrics).MeterProvider A registry for creating namedMeter
s.SynchronousInstrument<B extends io.opentelemetry.api.metrics.BoundSynchronousInstrument> SynchronousInstrument is an interface that defines a type of instruments that are used to report measurements synchronously.SynchronousInstrumentBuilder Builder class forSynchronousInstrument
. -
Class Summary Class Description GlobalMetricsProvider IMPORTANT: This is a temporary class, and solution for the metrics package until it will be marked as stable.