Class DelayedAttributes
java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.DelayedAttributes
- All Implemented Interfaces:
io.opentelemetry.api.common.Attributes
Class enabling Quarkus to instantiate a
TracerProvider
during static initialization and set a Attributes delegate during runtime initialization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()voidforEach(BiConsumer<? super io.opentelemetry.api.common.AttributeKey<?>, ? super Object> biConsumer) <T> Tget(io.opentelemetry.api.common.AttributeKey<T> attributeKey) booleanisEmpty()voidsetAttributesDelegate(io.opentelemetry.api.common.Attributes delegate) Set the actualAttributesto use as the delegate.intsize()io.opentelemetry.api.common.AttributesBuildertoString()
-
Constructor Details
-
DelayedAttributes
public DelayedAttributes()
-
-
Method Details
-
setAttributesDelegate
public void setAttributesDelegate(io.opentelemetry.api.common.Attributes delegate) Set the actualAttributesto use as the delegate.- Parameters:
delegate- Properly constructedAttributes.
-
get
public <T> T get(io.opentelemetry.api.common.AttributeKey<T> attributeKey) - Specified by:
getin interfaceio.opentelemetry.api.common.Attributes
-
forEach
public void forEach(BiConsumer<? super io.opentelemetry.api.common.AttributeKey<?>, ? super Object> biConsumer) - Specified by:
forEachin interfaceio.opentelemetry.api.common.Attributes
-
size
public int size()- Specified by:
sizein interfaceio.opentelemetry.api.common.Attributes
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceio.opentelemetry.api.common.Attributes
-
asMap
- Specified by:
asMapin interfaceio.opentelemetry.api.common.Attributes
-
toBuilder
public io.opentelemetry.api.common.AttributesBuilder toBuilder()- Specified by:
toBuilderin interfaceio.opentelemetry.api.common.Attributes
-
toString
-