Interface ExtendedDoubleHistogram
- All Superinterfaces:
DoubleHistogram
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopDoubleHistogram
,SdkDoubleHistogram
Extended
DoubleHistogram
with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the histogram is enabled.Methods inherited from interface io.opentelemetry.api.metrics.DoubleHistogram
record, record, record
-
Method Details
-
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
DoubleHistogram.record(double)
,DoubleHistogram.record(double, Attributes)
, orDoubleHistogram.record(double, Attributes, Context)
.
-