Interface ExtendedDoubleUpDownCounter
- All Superinterfaces:
DoubleUpDownCounter
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopDoubleUpDownCounter
,SdkDoubleUpDownCounter
Extended
DoubleUpDownCounter
with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the up down counter is enabled.Methods inherited from interface io.opentelemetry.api.metrics.DoubleUpDownCounter
add, add, add
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrue
if the up down 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
DoubleUpDownCounter.add(double)
,DoubleUpDownCounter.add(double, Attributes)
, orDoubleUpDownCounter.add(double, Attributes, Context)
.
-