Interface ExtendedDoubleCounter
- All Superinterfaces:
io.opentelemetry.api.metrics.DoubleCounter
public interface ExtendedDoubleCounter
extends io.opentelemetry.api.metrics.DoubleCounter
Extended
DoubleCounter with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the counter is enabled.Methods inherited from interface io.opentelemetry.api.metrics.DoubleCounter
add, add, add
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrueif 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).
-