Class Advice.AdviceBuilder

java.lang.Object
io.opentelemetry.sdk.metrics.internal.descriptor.Advice.AdviceBuilder
Enclosing class:
Advice

public abstract static class Advice.AdviceBuilder extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • 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

      public Advice.AdviceBuilder setAttributes(@Nullable List<AttributeKey<?>> attributes)
      Sets the list of the attribute keys to be used for the resulting instrument.
      Parameters:
      attributes - the list of the attribute keys.
    • build

      public abstract Advice build()