Package io.opentelemetry.api.common
Interface ReadableAttributes
-
- All Known Implementing Classes:
Attributes
public interface ReadableAttributes
A read-only container for String-keyed attributes.See
Attributes
for the public API implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
forEach(AttributeConsumer consumer)
Iterates over all the key-value pairs of attributes contained by this instance.<T> T
get(AttributeKey<T> key)
boolean
isEmpty()
Whether there are any attributes contained in this.int
size()
The number of attributes contained in this.
-
-
-
Method Detail
-
get
<T> T get(AttributeKey<T> key)
-
size
int size()
The number of attributes contained in this.
-
isEmpty
boolean isEmpty()
Whether there are any attributes contained in this.
-
forEach
void forEach(AttributeConsumer consumer)
Iterates over all the key-value pairs of attributes contained by this instance.
-
-