Package io.opentelemetry.api.metrics
Interface LongHistogram
-
@ThreadSafe public interface LongHistogramA histogram instrument that recordslongvalues.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BoundLongHistogrambind(io.opentelemetry.api.common.Attributes attributes)Construct a bound version of this instrument where all recorded values use the given attributes.voidrecord(long value)Records a value.voidrecord(long value, io.opentelemetry.api.common.Attributes attributes)Records a value with a set of attributes.voidrecord(long value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context)Records a value with a set of attributes.
-
-
-
Method Detail
-
record
void record(long value)
Records a value.Note: This may use
Context.current()to pull the context associated with this measurement.- Parameters:
value- The amount of the measurement.
-
record
void record(long value, io.opentelemetry.api.common.Attributes attributes)Records a value with a set of attributes.Note: This may use
Context.current()to pull the context associated with this measurement.- Parameters:
value- The amount of the measurement.attributes- A set of attributes to associate with the count.
-
record
void record(long value, io.opentelemetry.api.common.Attributes attributes, io.opentelemetry.context.Context context)Records a value with a set of attributes.- Parameters:
value- The amount of the measurement.attributes- A set of attributes to associate with the count.context- The explicit context to associate with this measurement.
-
bind
BoundLongHistogram bind(io.opentelemetry.api.common.Attributes attributes)
Construct a bound version of this instrument where all recorded values use the given attributes.
-
-