Class DelayedAttributes
- java.lang.Object
-
- io.quarkus.opentelemetry.runtime.tracing.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 aTracerProviderduring static initialization and set aAttributesdelegate during runtime initialization.
-
-
Constructor Summary
Constructors Constructor Description DelayedAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<io.opentelemetry.api.common.AttributeKey<?>,Object>asMap()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.AttributesBuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
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
public Map<io.opentelemetry.api.common.AttributeKey<?>,Object> 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
-
-