Class DelayedAttributes

java.lang.Object
io.quarkus.opentelemetry.runtime.DelayedAttributes
All Implemented Interfaces:
io.opentelemetry.api.common.Attributes

public class DelayedAttributes extends Object implements io.opentelemetry.api.common.Attributes
Class enabling Quarkus to instantiate a TracerProvider during static initialization and set a Attributes delegate during runtime initialization.
  • Constructor Details

    • DelayedAttributes

      public DelayedAttributes()
  • Method Details

    • setAttributesDelegate

      public void setAttributesDelegate(io.opentelemetry.api.common.Attributes delegate)
      Set the actual Attributes to use as the delegate.
      Parameters:
      delegate - Properly constructed Attributes.
    • get

      public <T> T get(io.opentelemetry.api.common.AttributeKey<T> attributeKey)
      Specified by:
      get in interface io.opentelemetry.api.common.Attributes
    • forEach

      public void forEach(BiConsumer<? super io.opentelemetry.api.common.AttributeKey<?>,? super Object> biConsumer)
      Specified by:
      forEach in interface io.opentelemetry.api.common.Attributes
    • size

      public int size()
      Specified by:
      size in interface io.opentelemetry.api.common.Attributes
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface io.opentelemetry.api.common.Attributes
    • asMap

      public Map<io.opentelemetry.api.common.AttributeKey<?>,Object> asMap()
      Specified by:
      asMap in interface io.opentelemetry.api.common.Attributes
    • toBuilder

      public io.opentelemetry.api.common.AttributesBuilder toBuilder()
      Specified by:
      toBuilder in interface io.opentelemetry.api.common.Attributes
    • toString

      public String toString()
      Overrides:
      toString in class Object