Package io.opentelemetry.api.metrics
Interface DoubleValueRecorder.BoundDoubleValueRecorder
-
- All Superinterfaces:
SynchronousInstrument.BoundInstrument
- Enclosing interface:
- DoubleValueRecorder
@ThreadSafe public static interface DoubleValueRecorder.BoundDoubleValueRecorder extends SynchronousInstrument.BoundInstrument
ABound Instrumentfor aDoubleValueRecorder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrecord(double value)Records the given measurement, associated with the currentContext.voidunbind()Unbinds the currentBoundfrom the Instrument.
-
-
-
Method Detail
-
record
void record(double value)
Records the given measurement, associated with the currentContext.- Parameters:
value- the measurement to record.- Throws:
IllegalArgumentException- if value is negative.
-
unbind
void unbind()
Description copied from interface:SynchronousInstrument.BoundInstrumentUnbinds the currentBoundfrom the Instrument.After this method returns the current instance
Boundis considered invalid (not being managed by the instrument).- Specified by:
unbindin interfaceSynchronousInstrument.BoundInstrument
-
-