Package io.opentelemetry.api.common
Class ArrayBackedAttributesBuilder
java.lang.Object
io.opentelemetry.api.common.ArrayBackedAttributesBuilder
- All Implemented Interfaces:
AttributesBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create theAttributes
from this.put
(AttributeKey<Long> key, int value) Puts aAttributeKey
with associated value into this.put
(AttributeKey<T> key, T value) Puts aAttributeKey
with associated value into this.putAll
(Attributes attributes) Puts all the provided attributes into this Builder.remove
(AttributeKey<T> key) removeIf
(Predicate<AttributeKey<?>> predicate) Remove all attributes that satisfy the given predicate.toList
(boolean... values) toList
(double... values) toList
(long... values)
-
Field Details
-
data
-
-
Constructor Details
-
ArrayBackedAttributesBuilder
ArrayBackedAttributesBuilder() -
ArrayBackedAttributesBuilder
-
-
Method Details
-
build
Description copied from interface:AttributesBuilder
Create theAttributes
from this.- Specified by:
build
in interfaceAttributesBuilder
-
put
Description copied from interface:AttributesBuilder
Puts aAttributeKey
with associated value into this.The type parameter is unused.
- Specified by:
put
in interfaceAttributesBuilder
-
put
Description copied from interface:AttributesBuilder
Puts aAttributeKey
with associated value into this.- Specified by:
put
in interfaceAttributesBuilder
-
putAll
Description copied from interface:AttributesBuilder
Puts all the provided attributes into this Builder.- Specified by:
putAll
in interfaceAttributesBuilder
- Returns:
- this Builder
-
remove
Description copied from interface:AttributesBuilder
- Specified by:
remove
in interfaceAttributesBuilder
- Returns:
- this Builder
-
removeIf
Description copied from interface:AttributesBuilder
Remove all attributes that satisfy the given predicate. Errors or runtime exceptions thrown by the predicate are relayed to the caller.- Specified by:
removeIf
in interfaceAttributesBuilder
- Returns:
- this Builder
-
toList
-
toList
-
toList
-