Interface ExtendedDoubleGauge
- All Superinterfaces:
DoubleGauge
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopDoubleGauge
,SdkDoubleGauge
Extended
DoubleGauge
with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the gauge is enabled.Methods inherited from interface io.opentelemetry.api.metrics.DoubleGauge
set, set, set
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrue
if the gauge is enabled.This allows callers to avoid unnecessary compute when nothing is consuming the data. Because the response is subject to change over the application, callers should call this before each call to
DoubleGauge.set(double)
,DoubleGauge.set(double, Attributes)
, orDoubleGauge.set(double, Attributes, Context)
.
-