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