@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.AttributesBuilder A builder ofAttributes
supporting an arbitrary number of key-value pairs.Labels An immutable container for labels, which are pairs ofString
.LabelsBuilder A builder ofLabels
supporting 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
.