Interface ExtendedDoubleHistogram
- All Superinterfaces:
io.opentelemetry.api.metrics.DoubleHistogram
public interface ExtendedDoubleHistogram
extends io.opentelemetry.api.metrics.DoubleHistogram
Extended
DoubleHistogram with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptionbind(io.opentelemetry.api.common.Attributes attributes) Binds this histogram to the givenattributes, returning aBoundDoubleHistogramthat records to the corresponding timeseries directly.Methods inherited from interface io.opentelemetry.api.metrics.DoubleHistogram
isEnabled, record, record, record
-
Method Details
-
bind
Binds this histogram to the givenattributes, returning aBoundDoubleHistogramthat records to the corresponding timeseries directly.Binding resolves the underlying timeseries once, eliminating the per-recording attribute processing and map lookup performed by
DoubleHistogram.record(double, Attributes). Prefer this when the set of attribute combinations is known ahead of time and the same series is recorded to repeatedly.
-