Package io.opentelemetry.api.metrics
Interface LongGauge
- All Known Subinterfaces:
ExtendedLongGauge
- All Known Implementing Classes:
DefaultMeter.NoopLongGauge
,ExtendedDefaultMeter.NoopLongGauge
,SdkLongGauge
@ThreadSafe
public interface LongGauge
A gauge instrument that synchronously records
long
values.- Since:
- 1.38.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
set
(long value) Set the gauge value.void
set
(long value, Attributes attributes) Records a value with a set of attributes.void
set
(long value, Attributes attributes, Context context) Records a value with a set of attributes.
-
Method Details
-
set
void set(long value) Set the gauge value.- Parameters:
value
- The current gauge value.
-
set
Records a value with a set of attributes.- Parameters:
value
- The current gauge value.attributes
- A set of attributes to associate with the value.
-
set
Records a value with a set of attributes.- Parameters:
value
- The current gauge value.attributes
- A set of attributes to associate with the value.context
- The explicit context to associate with this measurement.
-