Package io.opentelemetry.api.metrics
Interface BoundDoubleHistogram
-
@ThreadSafe public interface BoundDoubleHistogramA histogram instrument that recordslongvalues with pre-associated attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrecord(double value)Records a value with a pre-bound set of attributes.voidrecord(double value, io.opentelemetry.context.Context context)Records a value with a pre-bound set of attributes.voidunbind()Unbinds the current bound instance from theDoubleHistogram.
-
-
-
Method Detail
-
record
void record(double value)
Records a value with a pre-bound set of attributes.Note: This may use
Context.current()to pull the context associated with this measurement.- Parameters:
value- The amount of the measurement.
-
record
void record(double value, io.opentelemetry.context.Context context)Records a value with a pre-bound set of attributes.- Parameters:
value- The amount of the measurement.context- The explicit context to associate with this measurement.
-
unbind
void unbind()
Unbinds the current bound instance from theDoubleHistogram.After this method returns the current instance is considered invalid (not being managed by the instrument).
-
-