Package io.opentelemetry.api.metrics
Interface LongHistogramBuilder
-
- All Known Subinterfaces:
ExtendedLongHistogramBuilder
- All Known Implementing Classes:
DefaultMeter.NoopLongHistogramBuilder
,ExtendedDefaultMeter.NoopLongHistogramBuilder
,SdkLongHistogram.SdkLongHistogramBuilder
public interface LongHistogramBuilder
Builder class forLongHistogram
.- Since:
- 1.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LongHistogram
build()
Builds and returns a Histogram instrument with the configuration.LongHistogramBuilder
setDescription(java.lang.String description)
Sets the description for this instrument.default LongHistogramBuilder
setExplicitBucketBoundariesAdvice(java.util.List<java.lang.Long> bucketBoundaries)
Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.LongHistogramBuilder
setUnit(java.lang.String unit)
Sets the unit of measure for this instrument.
-
-
-
Method Detail
-
setDescription
LongHistogramBuilder setDescription(java.lang.String description)
Sets the description for this instrument.- Parameters:
description
- The description.- See Also:
- Instrument Description
-
setUnit
LongHistogramBuilder 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 LongHistogramBuilder setExplicitBucketBoundariesAdvice(java.util.List<java.lang.Long> 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
-
build
LongHistogram build()
Builds and returns a Histogram instrument with the configuration.- Returns:
- The Histogram instrument.
-
-