Package io.opentelemetry.sdk.metrics
Class ExplicitBucketHistogramOptions.Builder
java.lang.Object
io.opentelemetry.sdk.metrics.ExplicitBucketHistogramOptions.Builder
- Enclosing class:
ExplicitBucketHistogramOptions
Builder for
ExplicitBucketHistogramOptions.- Since:
- 1.60.0
-
Method Summary
Modifier and TypeMethodDescriptionabstract ExplicitBucketHistogramOptionsbuild()Returns a newExplicitBucketHistogramOptionswith the configuration of this builder.setBucketBoundaries(List<Double> bucketBoundaries) Sets the bucket boundaries.setRecordMinMax(boolean recordMinMax) Sets whether min and max values should be recorded.
-
Method Details
-
setBucketBoundaries
public abstract ExplicitBucketHistogramOptions.Builder setBucketBoundaries(@Nullable List<Double> bucketBoundaries) Sets the bucket boundaries. If not set, the default OTel bucket boundaries are used.- Parameters:
bucketBoundaries- a list of (inclusive) upper bounds, in order from lowest to highest
-
setRecordMinMax
Sets whether min and max values should be recorded.- Parameters:
recordMinMax- whether to record min and max values
-
build
Returns a newExplicitBucketHistogramOptionswith the configuration of this builder.
-