Class AdviceAttributesProcessor

java.lang.Object
io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
io.opentelemetry.sdk.metrics.internal.view.AdviceAttributesProcessor

final class AdviceAttributesProcessor extends AttributesProcessor
  • Field Details

  • Constructor Details

    • AdviceAttributesProcessor

      AdviceAttributesProcessor(List<AttributeKey<?>> adviceAttributeKeys)
  • Method Details

    • process

      public Attributes process(Attributes incoming, Context context)
      Description copied from class: AttributesProcessor
      Manipulates a set of attributes, returning the desired set.
      Specified by:
      process in class AttributesProcessor
      Parameters:
      incoming - Attributes associated with an incoming measurement.
      context - The context associated with the measurement.
    • usesContext

      public boolean usesContext()
      Description copied from class: AttributesProcessor
      If true, this ensures the `Context` argument of the attributes processor is always accurate. This will prevents bound instruments from pre-locking their metric-attributes and defer until context is available.
      Specified by:
      usesContext in class AttributesProcessor
    • toString

      public String toString()
      Overrides:
      toString in class Object