Uses of Interface
io.opentelemetry.api.common.AttributeKey
-
Packages that use AttributeKey Package Description io.opentelemetry.api.common This package contains code common across the OpenTelemetry APIs, includingAttributes
and classes/utilities for interacting with them.io.opentelemetry.api.incubator.events io.opentelemetry.api.incubator.logs io.opentelemetry.api.incubator.metrics io.opentelemetry.api.incubator.trace io.opentelemetry.api.internal Interfaces and implementations that are internal to OpenTelemetry.io.opentelemetry.api.logs API for writing log appenders.io.opentelemetry.api.trace API for distributed tracing.io.opentelemetry.exporter.internal Internal utilities for exporters.io.opentelemetry.exporter.internal.marshal Marshaling framework for serializing data to protobuf format.io.opentelemetry.exporter.internal.otlp Utilities for working with the OTLP format.io.opentelemetry.sdk.autoconfigure io.opentelemetry.sdk.internal Interfaces and implementations that are internal to OpenTelemetry.io.opentelemetry.sdk.logs The OpenTelemetry SDK implementation of logging.io.opentelemetry.sdk.logs.export Log exporters.io.opentelemetry.sdk.logs.internal io.opentelemetry.sdk.metrics The SDK implementation of metrics.io.opentelemetry.sdk.metrics.internal.descriptor io.opentelemetry.sdk.metrics.internal.view View related internal classes.io.opentelemetry.sdk.resources API for resource information population.io.opentelemetry.sdk.trace The OpenTelemetry SDK implementation of tracing.io.opentelemetry.sdk.trace.export Utilities that allow tracing services to export data for sampled spans, as well as providing in-process span processing APIs. -
-
Uses of AttributeKey in io.opentelemetry.api.common
Fields in io.opentelemetry.api.common with type parameters of type AttributeKey Modifier and Type Field Description private static java.util.Comparator<AttributeKey<?>>
ArrayBackedAttributes. KEY_COMPARATOR_FOR_CONSTRUCTION
Methods in io.opentelemetry.api.common that return AttributeKey Modifier and Type Method Description static AttributeKey<java.util.List<java.lang.Boolean>>
AttributeKey. booleanArrayKey(java.lang.String key)
Returns a new AttributeKey for List<Boolean> valued attributes.static AttributeKey<java.lang.Boolean>
AttributeKey. booleanKey(java.lang.String key)
Returns a new AttributeKey for Boolean valued attributes.static AttributeKey<java.util.List<java.lang.Double>>
AttributeKey. doubleArrayKey(java.lang.String key)
Returns a new AttributeKey for List<Double> valued attributes.static AttributeKey<java.lang.Double>
AttributeKey. doubleKey(java.lang.String key)
Returns a new AttributeKey for Double valued attributes.static AttributeKey<java.util.List<java.lang.Long>>
AttributeKey. longArrayKey(java.lang.String key)
Returns a new AttributeKey for List<Long> valued attributes.static AttributeKey<java.lang.Long>
AttributeKey. longKey(java.lang.String key)
Returns a new AttributeKey for Long valued attributes.static AttributeKey<java.util.List<java.lang.String>>
AttributeKey. stringArrayKey(java.lang.String key)
Returns a new AttributeKey for List<String> valued attributes.static AttributeKey<java.lang.String>
AttributeKey. stringKey(java.lang.String key)
Returns a new AttributeKey for String valued attributes.Methods in io.opentelemetry.api.common that return types with arguments of type AttributeKey Modifier and Type Method Description java.util.Map<AttributeKey<?>,java.lang.Object>
Attributes. asMap()
Returns a read-only view of thisAttributes
as aMap
.Methods in io.opentelemetry.api.common with parameters of type AttributeKey Modifier and Type Method Description <T> T
ArrayBackedAttributes. get(AttributeKey<T> key)
<T> T
Attributes. get(AttributeKey<T> key)
Returns the value for the givenAttributeKey
, ornull
if not found.static <T> Attributes
Attributes. of(AttributeKey<T> key, T value)
Returns aAttributes
instance with a single key-value pair.static <T,U>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2)
Returns aAttributes
instance with two key-value pairs.static <T,U,V>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3)
Returns aAttributes
instance with three key-value pairs.static <T,U,V,W>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4)
Returns aAttributes
instance with four key-value pairs.static <T,U,V,W,X>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4, AttributeKey<X> key5, X value5)
Returns aAttributes
instance with five key-value pairs.static <T,U,V,W,X,Y>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4, AttributeKey<X> key5, X value5, AttributeKey<Y> key6, Y value6)
Returns aAttributes
instance with the given key-value pairs.<T> AttributesBuilder
ArrayBackedAttributesBuilder. put(AttributeKey<java.lang.Long> key, int value)
<T> AttributesBuilder
ArrayBackedAttributesBuilder. put(AttributeKey<T> key, T value)
<T> AttributesBuilder
AttributesBuilder. put(AttributeKey<java.lang.Long> key, int value)
Puts aAttributeKey
with associated value into this.default <T> AttributesBuilder
AttributesBuilder. put(AttributeKey<java.util.List<T>> key, T... value)
Puts a List attribute into this.<T> AttributesBuilder
AttributesBuilder. put(AttributeKey<T> key, T value)
Puts aAttributeKey
with associated value into this.<T> AttributesBuilder
ArrayBackedAttributesBuilder. remove(AttributeKey<T> key)
default <T> AttributesBuilder
AttributesBuilder. remove(AttributeKey<T> key)
Method parameters in io.opentelemetry.api.common with type arguments of type AttributeKey Modifier and Type Method Description void
Attributes. forEach(java.util.function.BiConsumer<? super AttributeKey<?>,? super java.lang.Object> consumer)
Iterates over all the key-value pairs of attributes contained by this instance.AttributesBuilder
ArrayBackedAttributesBuilder. removeIf(java.util.function.Predicate<AttributeKey<?>> predicate)
default AttributesBuilder
AttributesBuilder. removeIf(java.util.function.Predicate<AttributeKey<?>> filter)
Remove all attributes that satisfy the given predicate.Constructor parameters in io.opentelemetry.api.common with type arguments of type AttributeKey Constructor Description ArrayBackedAttributes(java.lang.Object[] data, java.util.Comparator<AttributeKey<?>> keyComparator)
-
Uses of AttributeKey in io.opentelemetry.api.incubator.events
Methods in io.opentelemetry.api.incubator.events with parameters of type AttributeKey Modifier and Type Method Description default <T> EventBuilder
EventBuilder. put(AttributeKey<T> key, T value)
Put the given key and value in the payload. -
Uses of AttributeKey in io.opentelemetry.api.incubator.logs
Methods in io.opentelemetry.api.incubator.logs with parameters of type AttributeKey Modifier and Type Method Description <T> LogRecordBuilder
ExtendedDefaultLogger.NoopLogRecordBuilder. setAttribute(AttributeKey<T> key, T value)
-
Uses of AttributeKey in io.opentelemetry.api.incubator.metrics
Method parameters in io.opentelemetry.api.incubator.metrics with type arguments of type AttributeKey Modifier and Type Method Description default ExtendedDoubleCounterBuilder
ExtendedDoubleCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this counter.default ExtendedDoubleGaugeBuilder
ExtendedDoubleGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this gauge.default ExtendedDoubleHistogramBuilder
ExtendedDoubleHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.default ExtendedDoubleUpDownCounterBuilder
ExtendedDoubleUpDownCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this up down counter.default ExtendedLongCounterBuilder
ExtendedLongCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this counter.default ExtendedLongGaugeBuilder
ExtendedLongGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this gauge.default ExtendedLongHistogramBuilder
ExtendedLongHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.default ExtendedLongUpDownCounterBuilder
ExtendedLongUpDownCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this up down counter. -
Uses of AttributeKey in io.opentelemetry.api.incubator.trace
Methods in io.opentelemetry.api.incubator.trace with parameters of type AttributeKey Modifier and Type Method Description <T> ExtendedDefaultTracer.NoopSpanBuilder
ExtendedDefaultTracer.NoopSpanBuilder. setAttribute(AttributeKey<T> key, T value)
<T> ExtendedSpanBuilder
ExtendedSpanBuilder. setAttribute(AttributeKey<T> key, T value)
Sets an attribute to the newly createdSpan
. -
Uses of AttributeKey in io.opentelemetry.api.internal
Classes in io.opentelemetry.api.internal that implement AttributeKey Modifier and Type Class Description class
InternalAttributeKeyImpl<T>
Default AttributeKey implementation which preencodes to UTF8 for OTLP export.Methods in io.opentelemetry.api.internal that return AttributeKey Modifier and Type Method Description static <T> AttributeKey<T>
InternalAttributeKeyImpl. create(java.lang.String key, AttributeType type)
-
Uses of AttributeKey in io.opentelemetry.api.logs
Methods in io.opentelemetry.api.logs with parameters of type AttributeKey Modifier and Type Method Description <T> LogRecordBuilder
DefaultLogger.NoopLogRecordBuilder. setAttribute(AttributeKey<T> key, T value)
<T> LogRecordBuilder
LogRecordBuilder. setAttribute(AttributeKey<T> key, T value)
Sets an attribute. -
Uses of AttributeKey in io.opentelemetry.api.trace
Methods in io.opentelemetry.api.trace with parameters of type AttributeKey Modifier and Type Method Description <T> DefaultTracer.NoopSpanBuilder
DefaultTracer.NoopSpanBuilder. setAttribute(AttributeKey<T> key, T value)
<T> Span
PropagatedSpan. setAttribute(AttributeKey<T> key, T value)
default Span
Span. setAttribute(AttributeKey<java.lang.Long> key, int value)
Sets an attribute to theSpan
.<T> Span
Span. setAttribute(AttributeKey<T> key, T value)
Sets an attribute to theSpan
.<T> SpanBuilder
SpanBuilder. setAttribute(AttributeKey<T> key, T value)
Sets an attribute to the newly createdSpan
. -
Uses of AttributeKey in io.opentelemetry.exporter.internal
Fields in io.opentelemetry.exporter.internal declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.Boolean>
ExporterMetrics. ATTRIBUTE_KEY_SUCCESS
private static AttributeKey<java.lang.String>
ExporterMetrics. ATTRIBUTE_KEY_TYPE
-
Uses of AttributeKey in io.opentelemetry.exporter.internal.marshal
Method parameters in io.opentelemetry.exporter.internal.marshal with type arguments of type AttributeKey Modifier and Type Method Description void
Serializer. serializeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>,java.lang.Object> marshaler, MarshalerContext context)
Serializesrepeated message
field.static int
StatelessMarshalerUtil. sizeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>,java.lang.Object> marshaler, MarshalerContext context)
Returns the size of a repeated message field. -
Uses of AttributeKey in io.opentelemetry.exporter.internal.otlp
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type AttributeKey Modifier and Type Method Description private static KeyValueMarshaler
KeyValueMarshaler. create(AttributeKey<?> attributeKey, java.lang.Object value)
int
AttributeKeyValueStatelessMarshaler. getBinarySerializedSize(AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)
int
AttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler. getBinarySerializedSize(AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)
void
AttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler. writeTo(Serializer output, AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)
void
AttributeKeyValueStatelessMarshaler. writeTo(Serializer output, AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)
-
Uses of AttributeKey in io.opentelemetry.sdk.autoconfigure
Fields in io.opentelemetry.sdk.autoconfigure declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.String>
ResourceConfiguration. SERVICE_NAME
-
Uses of AttributeKey in io.opentelemetry.sdk.internal
Methods in io.opentelemetry.sdk.internal that return types with arguments of type AttributeKey Modifier and Type Method Description java.util.Map<AttributeKey<?>,java.lang.Object>
AttributesMap. asMap()
Methods in io.opentelemetry.sdk.internal with parameters of type AttributeKey Modifier and Type Method Description <T> T
AttributesMap. get(AttributeKey<T> key)
<T> void
AttributesMap. put(AttributeKey<T> key, T value)
Add the attribute key value pair, applying capacity and length limits.Method parameters in io.opentelemetry.sdk.internal with type arguments of type AttributeKey Modifier and Type Method Description void
AttributesMap. forEach(java.util.function.BiConsumer<? super AttributeKey<?>,? super java.lang.Object> action)
-
Uses of AttributeKey in io.opentelemetry.sdk.logs
Methods in io.opentelemetry.sdk.logs with parameters of type AttributeKey Modifier and Type Method Description <T> ReadWriteLogRecord
ReadWriteLogRecord. setAttribute(AttributeKey<T> key, T value)
Sets an attribute on the log record.<T> SdkLogRecordBuilder
SdkLogRecordBuilder. setAttribute(AttributeKey<T> key, T value)
<T> ReadWriteLogRecord
SdkReadWriteLogRecord. setAttribute(AttributeKey<T> key, T value)
-
Uses of AttributeKey in io.opentelemetry.sdk.logs.export
Fields in io.opentelemetry.sdk.logs.export declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.Boolean>
BatchLogRecordProcessor. LOG_RECORD_PROCESSOR_DROPPED_LABEL
private static AttributeKey<java.lang.String>
BatchLogRecordProcessor. LOG_RECORD_PROCESSOR_TYPE_LABEL
-
Uses of AttributeKey in io.opentelemetry.sdk.logs.internal
Fields in io.opentelemetry.sdk.logs.internal declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.String>
SdkEventBuilder. EVENT_NAME
-
Uses of AttributeKey in io.opentelemetry.sdk.metrics
Method parameters in io.opentelemetry.sdk.metrics with type arguments of type AttributeKey Modifier and Type Method Description (package private) void
InstrumentBuilder. setAdviceAttributes(java.util.List<AttributeKey<?>> attributes)
ExtendedDoubleCounterBuilder
SdkDoubleCounter.SdkDoubleCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedDoubleGaugeBuilder
SdkDoubleGauge.SdkDoubleGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedDoubleHistogramBuilder
SdkDoubleHistogram.SdkDoubleHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedDoubleUpDownCounterBuilder
SdkDoubleUpDownCounter.SdkDoubleUpDownCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedLongCounterBuilder
SdkLongCounter.SdkLongCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedLongGaugeBuilder
SdkLongGauge.SdkLongGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedLongHistogramBuilder
SdkLongHistogram.SdkLongHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
ExtendedLongUpDownCounterBuilder
SdkLongUpDownCounter.SdkLongUpDownCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)
-
Uses of AttributeKey in io.opentelemetry.sdk.metrics.internal.descriptor
Fields in io.opentelemetry.sdk.metrics.internal.descriptor with type parameters of type AttributeKey Modifier and Type Field Description private java.util.List<AttributeKey<?>>
AutoValue_Advice. attributes
private java.util.List<AttributeKey<?>>
AutoValue_Advice.Builder. attributes
Methods in io.opentelemetry.sdk.metrics.internal.descriptor that return types with arguments of type AttributeKey Modifier and Type Method Description abstract java.util.List<AttributeKey<?>>
Advice. getAttributes()
java.util.List<AttributeKey<?>>
AutoValue_Advice. getAttributes()
Method parameters in io.opentelemetry.sdk.metrics.internal.descriptor with type arguments of type AttributeKey Modifier and Type Method Description (package private) abstract Advice.AdviceBuilder
Advice.AdviceBuilder. attributes(java.util.List<AttributeKey<?>> attributes)
(package private) Advice.AdviceBuilder
AutoValue_Advice.Builder. attributes(java.util.List<AttributeKey<?>> attributes)
Advice.AdviceBuilder
Advice.AdviceBuilder. setAttributes(java.util.List<AttributeKey<?>> attributes)
Sets the list of the attribute keys to be used for the resulting instrument. -
Uses of AttributeKey in io.opentelemetry.sdk.metrics.internal.view
Fields in io.opentelemetry.sdk.metrics.internal.view with type parameters of type AttributeKey Modifier and Type Field Description private java.util.Set<AttributeKey<?>>
AdviceAttributesProcessor. attributeKeys
Methods in io.opentelemetry.sdk.metrics.internal.view that return types with arguments of type AttributeKey Modifier and Type Method Description java.util.Map<AttributeKey<?>,java.lang.Object>
FilteredAttributes. asMap()
Methods in io.opentelemetry.sdk.metrics.internal.view with parameters of type AttributeKey Modifier and Type Method Description <T> T
FilteredAttributes. get(AttributeKey<T> key)
private static <T> void
FilteredAttributes. putInBuilder(AttributesBuilder builder, AttributeKey<T> key, T value)
Method parameters in io.opentelemetry.sdk.metrics.internal.view with type arguments of type AttributeKey Modifier and Type Method Description (package private) static Attributes
FilteredAttributes. create(Attributes source, java.util.Set<AttributeKey<?>> includedKeys)
Create aFilteredAttributes
instance.void
FilteredAttributes. forEach(java.util.function.BiConsumer<? super AttributeKey<?>,? super java.lang.Object> consumer)
Constructor parameters in io.opentelemetry.sdk.metrics.internal.view with type arguments of type AttributeKey Constructor Description AdviceAttributesProcessor(java.util.List<AttributeKey<?>> adviceAttributeKeys)
-
Uses of AttributeKey in io.opentelemetry.sdk.resources
Fields in io.opentelemetry.sdk.resources declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.String>
Resource. SERVICE_NAME
private static AttributeKey<java.lang.String>
Resource. TELEMETRY_SDK_LANGUAGE
private static AttributeKey<java.lang.String>
Resource. TELEMETRY_SDK_NAME
private static AttributeKey<java.lang.String>
Resource. TELEMETRY_SDK_VERSION
Methods in io.opentelemetry.sdk.resources with parameters of type AttributeKey Modifier and Type Method Description <T> T
Resource. getAttribute(AttributeKey<T> key)
Returns the value for a given resource attribute key.private static boolean
Resource. isValidAndNotEmpty(AttributeKey<?> name)
Determines whether the givenString
is a valid printable ASCII string with a length greater than 0 and not exceedResource.MAX_LENGTH
characters.ResourceBuilder
ResourceBuilder. put(AttributeKey<java.lang.Long> key, int value)
Puts aAttributeKey
with associated value into this.<T> ResourceBuilder
ResourceBuilder. put(AttributeKey<T> key, T value)
Puts aAttributeKey
with associated value into this.Method parameters in io.opentelemetry.sdk.resources with type arguments of type AttributeKey Modifier and Type Method Description ResourceBuilder
ResourceBuilder. removeIf(java.util.function.Predicate<AttributeKey<?>> filter)
Remove all attributes that satisfy the given predicate fromResource
. -
Uses of AttributeKey in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.String>
SdkSpan. EXCEPTION_MESSAGE
private static AttributeKey<java.lang.String>
SdkSpan. EXCEPTION_STACKTRACE
private static AttributeKey<java.lang.String>
SdkSpan. EXCEPTION_TYPE
Methods in io.opentelemetry.sdk.trace with parameters of type AttributeKey Modifier and Type Method Description <T> T
ReadableSpan. getAttribute(AttributeKey<T> key)
Returns the value for the givenAttributeKey
, ornull
if not found.<T> T
SdkSpan. getAttribute(AttributeKey<T> key)
<T> ReadWriteSpan
SdkSpan. setAttribute(AttributeKey<T> key, T value)
<T> ExtendedSpanBuilder
SdkSpanBuilder. setAttribute(AttributeKey<T> key, T value)
-
Uses of AttributeKey in io.opentelemetry.sdk.trace.export
Fields in io.opentelemetry.sdk.trace.export declared as AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.Boolean>
BatchSpanProcessor. SPAN_PROCESSOR_DROPPED_LABEL
private static AttributeKey<java.lang.String>
BatchSpanProcessor. SPAN_PROCESSOR_TYPE_LABEL
-