Interface BoundLongGauge
@ThreadSafe
public interface BoundLongGauge
A
LongGauge bound to a fixed set of Attributes, obtained via ExtendedLongGauge.bind(Attributes).
Binding resolves the underlying timeseries once, so subsequent set(long) calls record
directly without the per-recording attribute processing and map lookup that LongGauge.set(long, 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(long 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(long 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.
-