Class Advice.AdviceBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.internal.descriptor.Advice.AdviceBuilder
- Enclosing class:
Advice
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionabstract Advicebuild()setAttributes(List<AttributeKey<?>> attributes) Sets the list of the attribute keys to be used for the resulting instrument.setExplicitBucketBoundaries(List<Double> explicitBucketBoundaries) Sets the explicit bucket histogram boundaries.
-
Method Details
-
setExplicitBucketBoundaries
public Advice.AdviceBuilder setExplicitBucketBoundaries(@Nullable List<Double> explicitBucketBoundaries) Sets the explicit bucket histogram boundaries.- Parameters:
explicitBucketBoundaries- the explicit bucket histogram boundaries.
-
setAttributes
Sets the list of the attribute keys to be used for the resulting instrument.- Parameters:
attributes- the list of the attribute keys.
-
build
-