Package io.opentelemetry.api.metrics
Interface LongValueRecorder.BoundLongValueRecorder
-
- All Superinterfaces:
SynchronousInstrument.BoundInstrument
- Enclosing interface:
- LongValueRecorder
@ThreadSafe public static interface LongValueRecorder.BoundLongValueRecorder extends SynchronousInstrument.BoundInstrument
ABound Instrument
for aLongValueRecorder
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
record(long value)
Records the given measurement, associated with the currentContext
.void
unbind()
Unbinds the currentBound
from the Instrument.
-
-
-
Method Detail
-
record
void record(long 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.BoundInstrument
Unbinds the currentBound
from the Instrument.After this method returns the current instance
Bound
is considered invalid (not being managed by the instrument).- Specified by:
unbind
in interfaceSynchronousInstrument.BoundInstrument
-
-