Package io.opentelemetry.api.metrics
Interface AsynchronousInstrument
-
- All Superinterfaces:
Instrument
- All Known Subinterfaces:
DoubleSumObserver
,DoubleUpDownSumObserver
,DoubleValueObserver
,LongSumObserver
,LongUpDownSumObserver
,LongValueObserver
@ThreadSafe public interface AsynchronousInstrument extends Instrument
AsynchronousInstrument
is an interface that defines a type of instruments that are used to report measurements asynchronously.They are reported by a callback, once per collection interval, and lack Context. They are permitted to report only one value per distinct label set per period. If the application observes multiple values for the same label set, in a single callback, the last value is the only value kept.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AsynchronousInstrument.DoubleResult
The result pass to the updater.static interface
AsynchronousInstrument.LongResult
The result pass to the updater.
-