Interface BoundDoubleGauge
@ThreadSafe
public interface BoundDoubleGauge
A
DoubleGauge bound to a fixed set of Attributes, obtained via ExtendedDoubleGauge.bind(Attributes).
Binding resolves the underlying timeseries once, so subsequent set(double) calls
record directly without the per-recording attribute processing and map lookup that DoubleGauge.set(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
-
set
void set(double value) Records the gauge value against the bound attributes.Note: This may use
Context.current()to pull the context associated with this measurement.- Parameters:
value- The current gauge value.
-
set
void set(double value, io.opentelemetry.context.Context context) Records the gauge value against the bound attributes, with an explicitContext.- Parameters:
value- The current gauge value.context- The explicit context to associate with this measurement.
-