Package io.opentelemetry.api.metrics
Interface LongGauge
-
- All Known Subinterfaces:
ExtendedLongGauge
- All Known Implementing Classes:
DefaultMeter.NoopLongGauge,ExtendedDefaultMeter.NoopLongGauge,SdkLongGauge
@ThreadSafe public interface LongGaugeA gauge instrument that synchronously recordslongvalues.- Since:
- 1.38.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidset(long value)Set the gauge value.voidset(long value, Attributes attributes)Records a value with a set of attributes.voidset(long value, Attributes attributes, Context context)Records a value with a set of attributes.
-
-
-
Method Detail
-
set
void set(long value)
Set the gauge value.- Parameters:
value- The current gauge value.
-
set
void set(long value, Attributes attributes)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
void set(long value, Attributes attributes, Context context)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.
-
-