@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> AsynchronousInstrumentis 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> ACallbackfor 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 Instrumentfor aDoubleCounter.DoubleCounter.Builder Builder class forDoubleCounter.DoubleSumObserver SumObserveris 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 Instrumentfor 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 ValueObserveris 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 Instrumentfor aDoubleValueRecorder.DoubleValueRecorder.Builder Builder class forDoubleValueRecorder.Instrument Base interface for all metrics defined in this package.Instrument.Builder TheBuilderclass for theInstrument.LongCounter Counter is the most common synchronous instrument.LongCounter.BoundLongCounter ABound Instrumentfor aLongCounter.LongCounter.Builder Builder class forLongCounter.LongSumObserver SumObserveris 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 Instrumentfor 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 ValueObserveris 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 Instrumentfor aLongValueRecorder.LongValueRecorder.Builder Builder class forLongValueRecorder.Meter Meter is a simple, interface that allows users to record measurements (metrics).MeterProvider A registry for creating namedMeters.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.