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.
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.
API for resource information population.
The OpenTelemetry SDK implementation of tracing.
-
Uses of AttributeKey in io.opentelemetry.api.common
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 thisAttributesas aMap.Methods in io.opentelemetry.api.common with parameters of type AttributeKeyModifier and TypeMethodDescription<T> TAttributes.get(AttributeKey<T> key) Returns the value for the givenAttributeKey, ornullif not found.static <T> AttributesAttributes.of(AttributeKey<T> key, T value) Returns aAttributesinstance with a single key-value pair.static <T,U> Attributes Attributes.of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2) Returns aAttributesinstance 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 aAttributesinstance with three key-value pairs.static <T,U, V, W> Attributes Attributes.of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4) Returns aAttributesinstance 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 aAttributesinstance 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 aAttributesinstance with the given key-value pairs.AttributesBuilder.put(AttributeKey<Long> key, int value) Puts aAttributeKeywith associated value into this.default <T> AttributesBuilderAttributesBuilder.put(AttributeKey<List<T>> key, T... value) Puts a List attribute into this.AttributesBuilder.put(AttributeKey<T> key, T value) Puts aAttributeKeywith associated value into this.default <T> AttributesBuilderAttributesBuilder.remove(AttributeKey<T> key) Method parameters in io.opentelemetry.api.common with type arguments of type AttributeKeyModifier and TypeMethodDescriptionvoidAttributes.forEach(BiConsumer<? super AttributeKey<?>, ? super Object> consumer) Iterates over all the key-value pairs of attributes contained by this instance.default AttributesBuilderAttributesBuilder.removeIf(Predicate<AttributeKey<?>> filter) Remove all attributes that satisfy the given predicate. -
Uses of AttributeKey in io.opentelemetry.api.incubator.events
Methods in io.opentelemetry.api.incubator.events with parameters of type AttributeKeyModifier and TypeMethodDescriptiondefault <T> EventBuilderEventBuilder.put(AttributeKey<T> key, T value) Put the given key and value in the payload. -
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 ExtendedDoubleCounterBuilderExtendedDoubleCounterBuilder.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this counter.default ExtendedDoubleGaugeBuilderExtendedDoubleGaugeBuilder.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this gauge.default ExtendedDoubleHistogramBuilderExtendedDoubleHistogramBuilder.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 ExtendedLongCounterBuilderExtendedLongCounterBuilder.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this counter.default ExtendedLongGaugeBuilderExtendedLongGaugeBuilder.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this gauge.default ExtendedLongHistogramBuilderExtendedLongHistogramBuilder.setAttributesAdvice(List<AttributeKey<?>> attributes) Specify the attribute advice, which suggests the recommended set of attribute keys to be used for this histogram.default ExtendedLongUpDownCounterBuilderExtendedLongUpDownCounterBuilder.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 TypeMethodDescriptionExtendedSpanBuilder.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 classDefault 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> LogRecordBuilderLogRecordBuilder.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 TypeMethodDescriptiondefault SpanSpan.setAttribute(AttributeKey<Long> key, int value) Sets an attribute to theSpan.<T> SpanSpan.setAttribute(AttributeKey<T> key, T value) Sets an attribute to theSpan.<T> SpanBuilderSpanBuilder.setAttribute(AttributeKey<T> key, T value) Sets an attribute to the newly createdSpan. -
Uses of AttributeKey in io.opentelemetry.exporter.internal.marshal
Method parameters in io.opentelemetry.exporter.internal.marshal with type arguments of type AttributeKeyModifier and TypeMethodDescriptionvoidSerializer.serializeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Serializesrepeated messagefield.static intStatelessMarshalerUtil.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
Classes in io.opentelemetry.exporter.internal.otlp that implement interfaces with type arguments of type AttributeKeyModifier and TypeClassDescriptionfinal classA Marshaler of key value pairs.Methods in io.opentelemetry.exporter.internal.otlp with parameters of type AttributeKeyModifier and TypeMethodDescriptionintAttributeKeyValueStatelessMarshaler.getBinarySerializedSize(AttributeKey<?> attributeKey, Object value, MarshalerContext context) voidAttributeKeyValueStatelessMarshaler.writeTo(Serializer output, AttributeKey<?> attributeKey, Object value, MarshalerContext context) -
Uses of AttributeKey in io.opentelemetry.sdk.internal
Subclasses with type arguments of type AttributeKey in io.opentelemetry.sdk.internalModifier and TypeClassDescriptionfinal classA map with a fixed capacity that drops attributes when the map gets full, and which truncates string and array string attribute values to theAttributesMap.lengthLimit.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> TAttributesMap.get(AttributeKey<T> key) <T> voidAttributesMap.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 TypeMethodDescriptionvoidAttributesMap.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. -
Uses of AttributeKey in io.opentelemetry.sdk.metrics.internal.descriptor
Methods in io.opentelemetry.sdk.metrics.internal.descriptor that return types with arguments of type AttributeKeyMethod parameters in io.opentelemetry.sdk.metrics.internal.descriptor with type arguments of type AttributeKeyModifier and TypeMethodDescriptionAdvice.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.resources
Methods in io.opentelemetry.sdk.resources with parameters of type AttributeKeyModifier and TypeMethodDescription<T> TResource.getAttribute(AttributeKey<T> key) Returns the value for a given resource attribute key.ResourceBuilder.put(AttributeKey<Long> key, int value) Puts aAttributeKeywith associated value into this.<T> ResourceBuilderResourceBuilder.put(AttributeKey<T> key, T value) Puts aAttributeKeywith 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
Methods in io.opentelemetry.sdk.trace with parameters of type AttributeKeyModifier and TypeMethodDescription<T> TReadableSpan.getAttribute(AttributeKey<T> key) Returns the value for the givenAttributeKey, ornullif not found.