Interface ExtendedLongGauge
- All Superinterfaces:
io.opentelemetry.api.metrics.LongGauge
public interface ExtendedLongGauge
extends io.opentelemetry.api.metrics.LongGauge
Extended
LongGauge with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the gauge is enabled.Methods inherited from interface io.opentelemetry.api.metrics.LongGauge
set, set, set
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrueif 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
LongGauge.set(long),LongGauge.set(long, Attributes), orLongGauge.set(long, Attributes, Context).
-