Class SdkDoubleHistogram.SdkDoubleHistogramBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.SdkDoubleHistogram.SdkDoubleHistogramBuilder
- All Implemented Interfaces:
ExtendedDoubleHistogramBuilder, DoubleHistogramBuilder
- Enclosing class:
SdkDoubleHistogram
static final class SdkDoubleHistogram.SdkDoubleHistogramBuilder
extends Object
implements ExtendedDoubleHistogramBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a Histogram instrument with the configuration.ofLongs()Sets the Counter for recordinglongvalues.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.setDescription(String description) Sets the description for this instrument.setExplicitBucketBoundariesAdvice(List<Double> bucketBoundaries) Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.Sets the unit of measure for this instrument.toString()
-
Field Details
-
builder
-
-
Constructor Details
-
SdkDoubleHistogramBuilder
-
-
Method Details
-
setDescription
Description copied from interface:DoubleHistogramBuilderSets the description for this instrument.- Specified by:
setDescriptionin interfaceDoubleHistogramBuilder- Parameters:
description- The description.- See Also:
-
setUnit
Description copied from interface:DoubleHistogramBuilderSets the unit of measure for this instrument.- Specified by:
setUnitin interfaceDoubleHistogramBuilder- Parameters:
unit- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
-
build
Description copied from interface:DoubleHistogramBuilderBuilds and returns a Histogram instrument with the configuration.- Specified by:
buildin interfaceDoubleHistogramBuilder- Returns:
- The Histogram instrument.
-
ofLongs
Description copied from interface:DoubleHistogramBuilderSets the Counter for recordinglongvalues.- Specified by:
ofLongsin interfaceDoubleHistogramBuilder
-
setExplicitBucketBoundariesAdvice
public ExtendedDoubleHistogramBuilder setExplicitBucketBoundariesAdvice(List<Double> bucketBoundaries) Description copied from interface:DoubleHistogramBuilderSet the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.- Specified by:
setExplicitBucketBoundariesAdvicein interfaceDoubleHistogramBuilder- Parameters:
bucketBoundaries- The explicit bucket boundaries advice.- See Also:
-
setAttributesAdvice
Description copied from interface:ExtendedDoubleHistogramBuilderSpecify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.- Specified by:
setAttributesAdvicein interfaceExtendedDoubleHistogramBuilder
-
toString
-