Package io.opentelemetry.sdk.metrics
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 recordinglong
values.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:DoubleHistogramBuilder
Sets the description for this instrument.- Specified by:
setDescription
in interfaceDoubleHistogramBuilder
- Parameters:
description
- The description.- See Also:
-
setUnit
Description copied from interface:DoubleHistogramBuilder
Sets the unit of measure for this instrument.- Specified by:
setUnit
in interfaceDoubleHistogramBuilder
- Parameters:
unit
- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
-
build
Description copied from interface:DoubleHistogramBuilder
Builds and returns a Histogram instrument with the configuration.- Specified by:
build
in interfaceDoubleHistogramBuilder
- Returns:
- The Histogram instrument.
-
ofLongs
Description copied from interface:DoubleHistogramBuilder
Sets the Counter for recordinglong
values.- Specified by:
ofLongs
in interfaceDoubleHistogramBuilder
-
setExplicitBucketBoundariesAdvice
public ExtendedDoubleHistogramBuilder setExplicitBucketBoundariesAdvice(List<Double> bucketBoundaries) Description copied from interface:DoubleHistogramBuilder
Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.- Specified by:
setExplicitBucketBoundariesAdvice
in interfaceDoubleHistogramBuilder
- Parameters:
bucketBoundaries
- The explicit bucket boundaries advice.- See Also:
-
setAttributesAdvice
Description copied from interface:ExtendedDoubleHistogramBuilder
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.- Specified by:
setAttributesAdvice
in interfaceExtendedDoubleHistogramBuilder
-
toString
-