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, includingAttributesand 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_CONSTRUCTIONMethods 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 thisAttributesas aMap.Methods in io.opentelemetry.api.common with parameters of type AttributeKey Modifier and Type Method Description <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>
AttributesAttributes. of(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2)Returns aAttributesinstance 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 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.<T> AttributesBuilderArrayBackedAttributesBuilder. put(AttributeKey<java.lang.Long> key, int value)<T> AttributesBuilderArrayBackedAttributesBuilder. put(AttributeKey<T> key, T value)<T> AttributesBuilderAttributesBuilder. put(AttributeKey<java.lang.Long> key, int value)Puts aAttributeKeywith associated value into this.default <T> AttributesBuilderAttributesBuilder. put(AttributeKey<java.util.List<T>> key, T... value)Puts a List attribute into this.<T> AttributesBuilderAttributesBuilder. put(AttributeKey<T> key, T value)Puts aAttributeKeywith associated value into this.<T> AttributesBuilderArrayBackedAttributesBuilder. remove(AttributeKey<T> key)default <T> AttributesBuilderAttributesBuilder. remove(AttributeKey<T> key)Method parameters in io.opentelemetry.api.common with type arguments of type AttributeKey Modifier and Type Method Description voidAttributes. 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.AttributesBuilderArrayBackedAttributesBuilder. removeIf(java.util.function.Predicate<AttributeKey<?>> predicate)default AttributesBuilderAttributesBuilder. 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> 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 AttributeKey Modifier and Type Method Description <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 AttributeKey Modifier and Type Method Description default ExtendedDoubleCounterBuilderExtendedDoubleCounterBuilder. 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 ExtendedDoubleGaugeBuilderExtendedDoubleGaugeBuilder. 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 ExtendedDoubleHistogramBuilderExtendedDoubleHistogramBuilder. 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 ExtendedDoubleUpDownCounterBuilderExtendedDoubleUpDownCounterBuilder. 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 ExtendedLongCounterBuilderExtendedLongCounterBuilder. 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 ExtendedLongGaugeBuilderExtendedLongGaugeBuilder. 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 ExtendedLongHistogramBuilderExtendedLongHistogramBuilder. 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 ExtendedLongUpDownCounterBuilderExtendedLongUpDownCounterBuilder. 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.NoopSpanBuilderExtendedDefaultTracer.NoopSpanBuilder. setAttribute(AttributeKey<T> key, T value)<T> ExtendedSpanBuilderExtendedSpanBuilder. 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 classInternalAttributeKeyImpl<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> 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 AttributeKey Modifier and Type Method Description <T> DefaultTracer.NoopSpanBuilderDefaultTracer.NoopSpanBuilder. setAttribute(AttributeKey<T> key, T value)<T> SpanPropagatedSpan. setAttribute(AttributeKey<T> key, T value)default SpanSpan. setAttribute(AttributeKey<java.lang.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 AttributeKey Modifier and Type Field Description private static AttributeKey<java.lang.Boolean>ExporterMetrics. ATTRIBUTE_KEY_SUCCESSprivate 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 voidSerializer. serializeRepeatedMessageWithContext(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>,java.lang.Object> marshaler, MarshalerContext context)Serializesrepeated messagefield.static intStatelessMarshalerUtil. 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 KeyValueMarshalerKeyValueMarshaler. create(AttributeKey<?> attributeKey, java.lang.Object value)intAttributeKeyValueStatelessMarshaler. getBinarySerializedSize(AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)intAttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler. getBinarySerializedSize(AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)voidAttributeKeyValueStatelessMarshaler.ValueStatelessMarshaler. writeTo(Serializer output, AttributeKey<?> attributeKey, java.lang.Object value, MarshalerContext context)voidAttributeKeyValueStatelessMarshaler. 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> 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 AttributeKey Modifier and Type Method Description voidAttributesMap. 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> ReadWriteLogRecordReadWriteLogRecord. setAttribute(AttributeKey<T> key, T value)Sets an attribute on the log record.<T> SdkLogRecordBuilderSdkLogRecordBuilder. setAttribute(AttributeKey<T> key, T value)<T> ReadWriteLogRecordSdkReadWriteLogRecord. 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_LABELprivate 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) voidInstrumentBuilder. setAdviceAttributes(java.util.List<AttributeKey<?>> attributes)ExtendedDoubleCounterBuilderSdkDoubleCounter.SdkDoubleCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedDoubleGaugeBuilderSdkDoubleGauge.SdkDoubleGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedDoubleHistogramBuilderSdkDoubleHistogram.SdkDoubleHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedDoubleUpDownCounterBuilderSdkDoubleUpDownCounter.SdkDoubleUpDownCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedLongCounterBuilderSdkLongCounter.SdkLongCounterBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedLongGaugeBuilderSdkLongGauge.SdkLongGaugeBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedLongHistogramBuilderSdkLongHistogram.SdkLongHistogramBuilder. setAttributesAdvice(java.util.List<AttributeKey<?>> attributes)ExtendedLongUpDownCounterBuilderSdkLongUpDownCounter.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. attributesprivate java.util.List<AttributeKey<?>>AutoValue_Advice.Builder. attributesMethods 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.AdviceBuilderAdvice.AdviceBuilder. attributes(java.util.List<AttributeKey<?>> attributes)(package private) Advice.AdviceBuilderAutoValue_Advice.Builder. attributes(java.util.List<AttributeKey<?>> attributes)Advice.AdviceBuilderAdvice.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. attributeKeysMethods 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> 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 AttributeKey Modifier and Type Method Description (package private) static AttributesFilteredAttributes. create(Attributes source, java.util.Set<AttributeKey<?>> includedKeys)Create aFilteredAttributesinstance.voidFilteredAttributes. 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_NAMEprivate static AttributeKey<java.lang.String>Resource. TELEMETRY_SDK_LANGUAGEprivate static AttributeKey<java.lang.String>Resource. TELEMETRY_SDK_NAMEprivate static AttributeKey<java.lang.String>Resource. TELEMETRY_SDK_VERSIONMethods in io.opentelemetry.sdk.resources with parameters of type AttributeKey Modifier and Type Method Description <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.ResourceBuilderResourceBuilder. put(AttributeKey<java.lang.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 AttributeKey Modifier and Type Method Description ResourceBuilderResourceBuilder. 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_MESSAGEprivate static AttributeKey<java.lang.String>SdkSpan. EXCEPTION_STACKTRACEprivate static AttributeKey<java.lang.String>SdkSpan. EXCEPTION_TYPEMethods in io.opentelemetry.sdk.trace with parameters of type AttributeKey Modifier and Type Method Description <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)<T> ExtendedSpanBuilderSdkSpanBuilder. 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_LABELprivate static AttributeKey<java.lang.String>BatchSpanProcessor. SPAN_PROCESSOR_TYPE_LABEL
-