@ParametersAreNonnullByDefault
Package io.opentelemetry.api.common
This package contains code common across the OpenTelemetry APIs, including
Attributes
and classes/utilities for interacting with them.-
Interface Summary Interface Description AttributeConsumer Used for iterating over all the key/value pairs in anAttributes
instance.AttributeKey<T> This interface provides a handle for setting the values ofAttributes
.ReadableAttributes A read-only container for String-keyed attributes. -
Class Summary Class Description Attributes An immutable container for attributes.Attributes.Builder Enables the creation of anAttributes
instance with an arbitrary number of key-value pairs.Labels An immutable container for labels, which are pairs ofString
.Labels.Builder Enables the creation of anLabels
instance with an arbitrary number of key-value pairs. -
Enum Summary Enum Description AttributeType An enum that represents all the possible value types for anAttributeKey
and hence the types of values that are allowed forAttributes
.