Interface ExtendedDoubleCounter
-
- All Superinterfaces:
DoubleCounter
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopDoubleCounter
,SdkDoubleCounter
public interface ExtendedDoubleCounter extends DoubleCounter
ExtendedDoubleCounter
with experimental APIs.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
isEnabled()
Returnstrue
if the counter is enabled.-
Methods inherited from interface io.opentelemetry.api.metrics.DoubleCounter
add, add, add
-
-
-
-
Method Detail
-
isEnabled
default boolean isEnabled()
Returnstrue
if the counter 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
DoubleCounter.add(double)
,DoubleCounter.add(double, Attributes)
, orDoubleCounter.add(double, Attributes, Context)
.
-
-