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 theAttributesfrom this.put(AttributeKey<Long> key, int value) Puts aAttributeKeywith associated value into this.put(AttributeKey<T> key, T value) Puts aAttributeKeywith 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:AttributesBuilderCreate theAttributesfrom this.- Specified by:
buildin interfaceAttributesBuilder
-
put
Description copied from interface:AttributesBuilderPuts aAttributeKeywith associated value into this.The type parameter is unused.
- Specified by:
putin interfaceAttributesBuilder
-
put
Description copied from interface:AttributesBuilderPuts aAttributeKeywith associated value into this.- Specified by:
putin interfaceAttributesBuilder
-
putAll
Description copied from interface:AttributesBuilderPuts all the provided attributes into this Builder.- Specified by:
putAllin interfaceAttributesBuilder- Returns:
- this Builder
-
remove
Description copied from interface:AttributesBuilder- Specified by:
removein interfaceAttributesBuilder- Returns:
- this Builder
-
removeIf
Description copied from interface:AttributesBuilderRemove all attributes that satisfy the given predicate. Errors or runtime exceptions thrown by the predicate are relayed to the caller.- Specified by:
removeIfin interfaceAttributesBuilder- Returns:
- this Builder
-
toList
-
toList
-
toList
-