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