@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<R extends AsynchronousInstrument.Result> AsynchronousInstrument
is an interface that defines a type of instruments that are used to report measurements asynchronously.AsynchronousInstrument.Builder Builder class forAsynchronousInstrument
.AsynchronousInstrument.Callback<R extends AsynchronousInstrument.Result> ACallback
for aAsynchronousInstrument
.AsynchronousInstrument.DoubleResult The result for theAsynchronousInstrument.Callback
.AsynchronousInstrument.LongResult The result for theAsynchronousInstrument.Callback
.AsynchronousInstrument.Result BatchRecorder Util class that can be use to atomically record measurements associated with a set of Metrics.DoubleCounter Counter is the most common synchronous instrument.DoubleCounter.BoundDoubleCounter ABound Instrument
for aDoubleCounter
.DoubleCounter.Builder Builder class forDoubleCounter
.DoubleSumObserver SumObserver
is the asynchronous instrument corresponding to Counter, used to capture a monotonic sum with Observe(sum).DoubleSumObserver.Builder Builder class forDoubleSumObserver
.DoubleUpDownCounter UpDownCounter is a synchronous instrument and very similar to Counter except that Add(increment) supports negative increments.DoubleUpDownCounter.BoundDoubleUpDownCounter ABound Instrument
for aDoubleUpDownCounter
.DoubleUpDownCounter.Builder Builder class forDoubleUpDownCounter
.DoubleUpDownSumObserver UpDownSumObserver is the asynchronous instrument corresponding to UpDownCounter, used to capture a non-monotonic count with Observe(sum).DoubleUpDownSumObserver.Builder 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.DoubleValueObserver.Builder Builder class forDoubleValueObserver
.DoubleValueRecorder ValueRecorder is a synchronous instrument useful for recording any number, positive or negative.DoubleValueRecorder.BoundDoubleValueRecorder ABound Instrument
for aDoubleValueRecorder
.DoubleValueRecorder.Builder Builder class forDoubleValueRecorder
.Instrument Base interface for all metrics defined in this package.Instrument.Builder TheBuilder
class for theInstrument
.LongCounter Counter is the most common synchronous instrument.LongCounter.BoundLongCounter ABound Instrument
for aLongCounter
.LongCounter.Builder Builder class forLongCounter
.LongSumObserver SumObserver
is the asynchronous instrument corresponding to Counter, used to capture a monotonic sum with Observe(sum).LongSumObserver.Builder Builder class forLongSumObserver
.LongUpDownCounter UpDownCounter is a synchronous instrument and very similar to Counter except that Add(increment) supports negative increments.LongUpDownCounter.BoundLongUpDownCounter ABound Instrument
for aLongUpDownCounter
.LongUpDownCounter.Builder Builder class forLongUpDownCounter
.LongUpDownSumObserver UpDownSumObserver is the asynchronous instrument corresponding to UpDownCounter, used to capture a non-monotonic count with Observe(sum).LongUpDownSumObserver.Builder 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.LongValueObserver.Builder Builder class forLongValueObserver
.LongValueRecorder ValueRecorder is a synchronous instrument useful for recording any number, positive or negative.LongValueRecorder.BoundLongValueRecorder ABound Instrument
for aLongValueRecorder
.LongValueRecorder.Builder 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 SynchronousInstrument.BoundInstrument> SynchronousInstrument is an interface that defines a type of instruments that are used to report measurements synchronously.SynchronousInstrument.BoundInstrument SynchronousInstrument.Builder Builder class forSynchronousInstrument
.