Uses of Interface
io.opentelemetry.api.common.AttributeKey
Packages that use AttributeKey
Package
Description
This package contains code common across the OpenTelemetry APIs, including
Attributes
and classes/utilities for interacting with them.Interfaces and implementations that are internal to OpenTelemetry.
API for writing log appenders.
API for distributed tracing.
Internal utilities for exporters.
Marshaling framework for serializing data to protobuf format.
Utilities for working with the OTLP format.
Interfaces and implementations that are internal to OpenTelemetry.
The OpenTelemetry SDK implementation of logging.
Log exporters.
The SDK implementation of metrics.
View related internal classes.
API for resource information population.
The OpenTelemetry SDK implementation of tracing.
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 AttributeKeyModifier and TypeFieldDescriptionprivate static final Comparator
<AttributeKey<?>> ArrayBackedAttributes.KEY_COMPARATOR_FOR_CONSTRUCTION
Methods in io.opentelemetry.api.common that return AttributeKeyModifier and TypeMethodDescriptionstatic AttributeKey
<List<Boolean>> AttributeKey.booleanArrayKey
(String key) Returns a new AttributeKey for List<Boolean> valued attributes.static AttributeKey
<Boolean> AttributeKey.booleanKey
(String key) Returns a new AttributeKey for Boolean valued attributes.static AttributeKey
<List<Double>> AttributeKey.doubleArrayKey
(String key) Returns a new AttributeKey for List<Double> valued attributes.static AttributeKey
<Double> Returns a new AttributeKey for Double valued attributes.static AttributeKey
<List<Long>> AttributeKey.longArrayKey
(String key) Returns a new AttributeKey for List<Long> valued attributes.static AttributeKey
<Long> Returns a new AttributeKey for Long valued attributes.static AttributeKey
<List<String>> AttributeKey.stringArrayKey
(String key) Returns a new AttributeKey for List<String> valued attributes.static AttributeKey
<String> Returns a new AttributeKey for String valued attributes.Methods in io.opentelemetry.api.common that return types with arguments of type AttributeKeyModifier and TypeMethodDescriptionMap
<AttributeKey<?>, Object> Attributes.asMap()
Returns a read-only view of thisAttributes
as aMap
.Methods in io.opentelemetry.api.common with parameters of type AttributeKeyModifier and TypeMethodDescription<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> Attributes Attributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2) Returns aAttributes
instance with two key-value pairs.static <T,
U, V> Attributes Attributes.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.ArrayBackedAttributesBuilder.put
(AttributeKey<Long> key, int value) ArrayBackedAttributesBuilder.put
(AttributeKey<T> key, T value) AttributesBuilder.put
(AttributeKey<Long> key, int value) Puts aAttributeKey
with associated value into this.default <T> AttributesBuilder
AttributesBuilder.put
(AttributeKey<List<T>> key, T... value) Puts a List attribute into this.AttributesBuilder.put
(AttributeKey<T> key, T value) Puts aAttributeKey
with associated value into this.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 AttributeKeyModifier and TypeMethodDescriptionvoid
Attributes.forEach
(BiConsumer<? super AttributeKey<?>, ? super Object> consumer) Iterates over all the key-value pairs of attributes contained by this instance.ArrayBackedAttributesBuilder.removeIf
(Predicate<AttributeKey<?>> predicate) default AttributesBuilder
AttributesBuilder.removeIf
(Predicate<AttributeKey<?>> filter) Remove all attributes that satisfy the given predicate.Constructor parameters in io.opentelemetry.api.common with type arguments of type AttributeKeyModifierConstructorDescriptionprivate
ArrayBackedAttributes
(Object[] data, Comparator<AttributeKey<?>> keyComparator) -
Uses of AttributeKey in io.opentelemetry.api.incubator.events
Methods in io.opentelemetry.api.incubator.events with parameters of type AttributeKeyModifier and TypeMethodDescriptiondefault <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 AttributeKeyModifier and TypeMethodDescription<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 AttributeKeyModifier and TypeMethodDescriptiondefault ExtendedDoubleCounterBuilder
ExtendedDoubleCounterBuilder.setAttributesAdvice
(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
(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
(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.ExtendedDoubleUpDownCounterBuilder.setAttributesAdvice
(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
(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
(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
(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
(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 AttributeKeyModifier and TypeMethodDescriptionExtendedDefaultTracer.NoopSpanBuilder.setAttribute
(AttributeKey<T> key, T value) 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 AttributeKeyModifier and TypeClassDescriptionfinal class
Default AttributeKey implementation which preencodes to UTF8 for OTLP export.Methods in io.opentelemetry.api.internal that return AttributeKeyModifier and TypeMethodDescriptionstatic <T> AttributeKey
<T> InternalAttributeKeyImpl.create
(String key, AttributeType type) -
Uses of AttributeKey in io.opentelemetry.api.logs
Methods in io.opentelemetry.api.logs with parameters of type AttributeKeyModifier and TypeMethodDescription<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 AttributeKeyModifier and TypeMethodDescriptionDefaultTracer.NoopSpanBuilder.setAttribute
(AttributeKey<T> key, T value) <T> Span
PropagatedSpan.setAttribute
(AttributeKey<T> key, T value) default Span
Span.setAttribute
(AttributeKey<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 AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<Boolean> ExporterMetrics.ATTRIBUTE_KEY_SUCCESS
private static final AttributeKey
<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 AttributeKeyModifier and TypeMethodDescriptionvoid
Serializer.serializeRepeatedMessageWithContext
(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Serializesrepeated message
field.static int
StatelessMarshalerUtil.sizeRepeatedMessageWithContext
(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, 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 AttributeKeyModifier and TypeMethodDescriptionprivate static KeyValueMarshaler
KeyValueMarshaler.create
(AttributeKey<?> attributeKey, Object value) int
AttributeKeyValueStatelessMarshaler.getBinarySerializedSize
(AttributeKey<?> attributeKey, Object value, MarshalerContext context) int
AttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler.getBinarySerializedSize
(AttributeKey<?> attributeKey, Object value, MarshalerContext context) void
AttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler.writeTo
(Serializer output, AttributeKey<?> attributeKey, Object value, MarshalerContext context) void
AttributeKeyValueStatelessMarshaler.writeTo
(Serializer output, AttributeKey<?> attributeKey, Object value, MarshalerContext context) -
Uses of AttributeKey in io.opentelemetry.sdk.autoconfigure
Fields in io.opentelemetry.sdk.autoconfigure declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<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 AttributeKeyMethods in io.opentelemetry.sdk.internal with parameters of type AttributeKeyModifier and TypeMethodDescription<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 AttributeKeyModifier and TypeMethodDescriptionvoid
AttributesMap.forEach
(BiConsumer<? super AttributeKey<?>, ? super Object> action) -
Uses of AttributeKey in io.opentelemetry.sdk.logs
Methods in io.opentelemetry.sdk.logs with parameters of type AttributeKeyModifier and TypeMethodDescriptionReadWriteLogRecord.setAttribute
(AttributeKey<T> key, T value) Sets an attribute on the log record.SdkLogRecordBuilder.setAttribute
(AttributeKey<T> key, T value) 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 AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<Boolean> BatchLogRecordProcessor.LOG_RECORD_PROCESSOR_DROPPED_LABEL
private static final AttributeKey
<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 AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<String> SdkEventBuilder.EVENT_NAME
-
Uses of AttributeKey in io.opentelemetry.sdk.metrics
Method parameters in io.opentelemetry.sdk.metrics with type arguments of type AttributeKeyModifier and TypeMethodDescription(package private) void
InstrumentBuilder.setAdviceAttributes
(List<AttributeKey<?>> attributes) SdkDoubleCounter.SdkDoubleCounterBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkDoubleGauge.SdkDoubleGaugeBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkDoubleHistogram.SdkDoubleHistogramBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkDoubleUpDownCounter.SdkDoubleUpDownCounterBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkLongCounter.SdkLongCounterBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkLongGauge.SdkLongGaugeBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkLongHistogram.SdkLongHistogramBuilder.setAttributesAdvice
(List<AttributeKey<?>> attributes) SdkLongUpDownCounter.SdkLongUpDownCounterBuilder.setAttributesAdvice
(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 AttributeKeyModifier and TypeFieldDescriptionprivate final List
<AttributeKey<?>> AutoValue_Advice.attributes
private List
<AttributeKey<?>> AutoValue_Advice.Builder.attributes
Methods in io.opentelemetry.sdk.metrics.internal.descriptor that return types with arguments of type AttributeKeyModifier and TypeMethodDescriptionabstract List
<AttributeKey<?>> Advice.getAttributes()
List
<AttributeKey<?>> AutoValue_Advice.getAttributes()
Method parameters in io.opentelemetry.sdk.metrics.internal.descriptor with type arguments of type AttributeKeyModifier and TypeMethodDescription(package private) abstract Advice.AdviceBuilder
Advice.AdviceBuilder.attributes
(List<AttributeKey<?>> attributes) (package private) Advice.AdviceBuilder
AutoValue_Advice.Builder.attributes
(List<AttributeKey<?>> attributes) Advice.AdviceBuilder.setAttributes
(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 AttributeKeyModifier and TypeFieldDescriptionprivate final Set
<AttributeKey<?>> AdviceAttributesProcessor.attributeKeys
Methods in io.opentelemetry.sdk.metrics.internal.view that return types with arguments of type AttributeKeyMethods in io.opentelemetry.sdk.metrics.internal.view with parameters of type AttributeKeyModifier and TypeMethodDescription<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 AttributeKeyModifier and TypeMethodDescription(package private) static Attributes
FilteredAttributes.create
(Attributes source, Set<AttributeKey<?>> includedKeys) Create aFilteredAttributes
instance.void
FilteredAttributes.forEach
(BiConsumer<? super AttributeKey<?>, ? super Object> consumer) Constructor parameters in io.opentelemetry.sdk.metrics.internal.view with type arguments of type AttributeKeyModifierConstructorDescription(package private)
AdviceAttributesProcessor
(List<AttributeKey<?>> adviceAttributeKeys) -
Uses of AttributeKey in io.opentelemetry.sdk.resources
Fields in io.opentelemetry.sdk.resources declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<String> Resource.SERVICE_NAME
private static final AttributeKey
<String> Resource.TELEMETRY_SDK_LANGUAGE
private static final AttributeKey
<String> Resource.TELEMETRY_SDK_NAME
private static final AttributeKey
<String> Resource.TELEMETRY_SDK_VERSION
Methods in io.opentelemetry.sdk.resources with parameters of type AttributeKeyModifier and TypeMethodDescription<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.put
(AttributeKey<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 AttributeKeyModifier and TypeMethodDescriptionResourceBuilder.removeIf
(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 AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<String> SdkSpan.EXCEPTION_MESSAGE
private static final AttributeKey
<String> SdkSpan.EXCEPTION_STACKTRACE
private static final AttributeKey
<String> SdkSpan.EXCEPTION_TYPE
Methods in io.opentelemetry.sdk.trace with parameters of type AttributeKeyModifier and TypeMethodDescription<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) 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 AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<Boolean> BatchSpanProcessor.SPAN_PROCESSOR_DROPPED_LABEL
private static final AttributeKey
<String> BatchSpanProcessor.SPAN_PROCESSOR_TYPE_LABEL