Package io.opentelemetry.sdk.metrics
Class SdkLongHistogram.SdkLongHistogramBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.SdkLongHistogram.SdkLongHistogramBuilder
- All Implemented Interfaces:
ExtendedLongHistogramBuilder
,LongHistogramBuilder
- Enclosing class:
SdkLongHistogram
static final class SdkLongHistogram.SdkLongHistogramBuilder
extends Object
implements ExtendedLongHistogramBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSdkLongHistogramBuilder
(SdkMeter sdkMeter, String name, String description, String unit, Advice.AdviceBuilder adviceBuilder) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a Histogram instrument with the configuration.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<Long> 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
-
SdkLongHistogramBuilder
SdkLongHistogramBuilder(SdkMeter sdkMeter, String name, String description, String unit, Advice.AdviceBuilder adviceBuilder)
-
-
Method Details
-
setDescription
Description copied from interface:LongHistogramBuilder
Sets the description for this instrument.- Specified by:
setDescription
in interfaceLongHistogramBuilder
- Parameters:
description
- The description.- See Also:
-
setUnit
Description copied from interface:LongHistogramBuilder
Sets the unit of measure for this instrument.- Specified by:
setUnit
in interfaceLongHistogramBuilder
- Parameters:
unit
- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
-
build
Description copied from interface:LongHistogramBuilder
Builds and returns a Histogram instrument with the configuration.- Specified by:
build
in interfaceLongHistogramBuilder
- Returns:
- The Histogram instrument.
-
setExplicitBucketBoundariesAdvice
Description copied from interface:LongHistogramBuilder
Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.- Specified by:
setExplicitBucketBoundariesAdvice
in interfaceLongHistogramBuilder
- Parameters:
bucketBoundaries
- The explicit bucket boundaries advice.- See Also:
-
setAttributesAdvice
Description copied from interface:ExtendedLongHistogramBuilder
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.- Specified by:
setAttributesAdvice
in interfaceExtendedLongHistogramBuilder
-
toString
-