Interface BoundDoubleHistogram
@ThreadSafe
public interface BoundDoubleHistogram
A
DoubleHistogram bound to a fixed set of Attributes, obtained via ExtendedDoubleHistogram.bind(Attributes).
Binding resolves the underlying timeseries once, so subsequent record(double) calls
record directly without the per-recording attribute processing and map lookup that DoubleHistogram.record(double, Attributes) performs. This is useful when the set of attribute
combinations is known ahead of time and the same series is recorded to repeatedly.
-
Method Summary
-
Method Details
-
record
void record(double value) Records a value against the bound attributes.Note: This may use
Context.current()to pull the context associated with this measurement.- Parameters:
value- The amount of the measurement. MUST be non-negative.
-
record
void record(double value, io.opentelemetry.context.Context context) Records a value against the bound attributes, with an explicitContext.- Parameters:
value- The amount of the measurement. MUST be non-negative.context- The explicit context to associate with this measurement.
-