Interface ExtendedLongHistogram
-
- All Superinterfaces:
LongHistogram
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopLongHistogram
,SdkLongHistogram
public interface ExtendedLongHistogram extends LongHistogram
ExtendedLongHistogram
with experimental APIs.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
isEnabled()
Returnstrue
if the histogram is enabled.-
Methods inherited from interface io.opentelemetry.api.metrics.LongHistogram
record, record, record
-
-
-
-
Method Detail
-
isEnabled
default boolean isEnabled()
Returnstrue
if the histogram 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
LongHistogram.record(long)
,LongHistogram.record(long, Attributes)
, orLongHistogram.record(long, Attributes, Context)
.
-
-