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_CONSTRUCTIONMethods 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> TArrayBackedAttributes.get(AttributeKey<T> key) <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>
AttributesAttributes.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.ArrayBackedAttributesBuilder.put(AttributeKey<Long> key, int value) ArrayBackedAttributesBuilder.put(AttributeKey<T> key, T value) 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.ArrayBackedAttributesBuilder.remove(AttributeKey<T> key) 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.ArrayBackedAttributesBuilder.removeIf(Predicate<AttributeKey<?>> predicate) default AttributesBuilderAttributesBuilder.removeIf(Predicate<AttributeKey<?>> filter) Remove all attributes that satisfy the given predicate.Constructor parameters in io.opentelemetry.api.common with type arguments of type AttributeKeyModifierConstructorDescriptionprivateArrayBackedAttributes(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> EventBuilderEventBuilder.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> LogRecordBuilderExtendedDefaultLogger.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 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 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 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> LogRecordBuilderDefaultLogger.NoopLogRecordBuilder.setAttribute(AttributeKey<T> key, T value) <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 TypeMethodDescriptionDefaultTracer.NoopSpanBuilder.setAttribute(AttributeKey<T> key, T value) <T> SpanPropagatedSpan.setAttribute(AttributeKey<T> key, T value) default 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
Fields in io.opentelemetry.exporter.internal declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey<Boolean> ExporterMetrics.ATTRIBUTE_KEY_SUCCESSprivate 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 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
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type AttributeKeyModifier and TypeMethodDescriptionprivate static KeyValueMarshalerKeyValueMarshaler.create(AttributeKey<?> attributeKey, Object value) intAttributeKeyValueStatelessMarshaler.getBinarySerializedSize(AttributeKey<?> attributeKey, Object value, MarshalerContext context) intAttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler.getBinarySerializedSize(AttributeKey<?> attributeKey, Object value, MarshalerContext context) voidAttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler.writeTo(Serializer output, AttributeKey<?> attributeKey, Object value, MarshalerContext context) voidAttributeKeyValueStatelessMarshaler.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> 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.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_LABELprivate 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) voidInstrumentBuilder.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.attributesprivate List<AttributeKey<?>> AutoValue_Advice.Builder.attributesMethods 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.AdviceBuilderAdvice.AdviceBuilder.attributes(List<AttributeKey<?>> attributes) (package private) Advice.AdviceBuilderAutoValue_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.attributeKeysMethods 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> TFilteredAttributes.get(AttributeKey<T> key) private static <T> voidFilteredAttributes.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 AttributesFilteredAttributes.create(Attributes source, Set<AttributeKey<?>> includedKeys) Create aFilteredAttributesinstance.voidFilteredAttributes.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_NAMEprivate static final AttributeKey<String> Resource.TELEMETRY_SDK_LANGUAGEprivate static final AttributeKey<String> Resource.TELEMETRY_SDK_NAMEprivate static final AttributeKey<String> Resource.TELEMETRY_SDK_VERSIONMethods 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.private static booleanResource.isValidAndNotEmpty(AttributeKey<?> name) Determines whether the givenStringis a valid printable ASCII string with a length greater than 0 and not exceedResource.MAX_LENGTHcharacters.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
Fields in io.opentelemetry.sdk.trace declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey<String> SdkSpan.EXCEPTION_MESSAGEprivate static final AttributeKey<String> SdkSpan.EXCEPTION_STACKTRACEprivate static final AttributeKey<String> SdkSpan.EXCEPTION_TYPEMethods 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.<T> TSdkSpan.getAttribute(AttributeKey<T> key) <T> ReadWriteSpanSdkSpan.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_LABELprivate static final AttributeKey<String> BatchSpanProcessor.SPAN_PROCESSOR_TYPE_LABEL