Package io.opentelemetry.api.metrics
Interface DoubleHistogramBuilder
-
- All Known Subinterfaces:
ExtendedDoubleHistogramBuilder
- All Known Implementing Classes:
DefaultMeter.NoopDoubleHistogramBuilder,ExtendedDefaultMeter.NoopDoubleHistogramBuilder,SdkDoubleHistogram.SdkDoubleHistogramBuilder
public interface DoubleHistogramBuilderBuilder class forDoubleHistogram.- Since:
- 1.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DoubleHistogrambuild()Builds and returns a Histogram instrument with the configuration.LongHistogramBuilderofLongs()Sets the Counter for recordinglongvalues.DoubleHistogramBuildersetDescription(java.lang.String description)Sets the description for this instrument.default DoubleHistogramBuildersetExplicitBucketBoundariesAdvice(java.util.List<java.lang.Double> bucketBoundaries)Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.DoubleHistogramBuildersetUnit(java.lang.String unit)Sets the unit of measure for this instrument.
-
-
-
Method Detail
-
setDescription
DoubleHistogramBuilder setDescription(java.lang.String description)
Sets the description for this instrument.- Parameters:
description- The description.- See Also:
- Instrument Description
-
setUnit
DoubleHistogramBuilder setUnit(java.lang.String unit)
Sets the unit of measure for this instrument.- Parameters:
unit- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
- Instrument Unit
-
setExplicitBucketBoundariesAdvice
default DoubleHistogramBuilder setExplicitBucketBoundariesAdvice(java.util.List<java.lang.Double> bucketBoundaries)
Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.- Parameters:
bucketBoundaries- The explicit bucket boundaries advice.- Since:
- 1.32.0
- See Also:
- Explicit bucket boundaries advisory parameter
-
ofLongs
LongHistogramBuilder ofLongs()
Sets the Counter for recordinglongvalues.
-
build
DoubleHistogram build()
Builds and returns a Histogram instrument with the configuration.- Returns:
- The Histogram instrument.
-
-