Top Fields Constructors Methods
io.opentelemetry.api.common

pack-priv Class ArrayBackedAttributesBuilder

extends Object
implements AttributesBuilder
Class Inheritance
All Implemented Interfaces
io.opentelemetry.api.common.AttributesBuilder
Imports
java.util.ArrayList, .Arrays, .List, java.util.function.Predicate

Field Summary

Modifier and TypeField and Description
private final List<Object>

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Attributes
public <T> AttributesBuilder
public <T> AttributesBuilder
put(AttributeKey<T> key, T value)

Implements io.opentelemetry.api.common.AttributesBuilder.put.

Puts a AttributeKey with associated value into this.

public AttributesBuilder
putAll(Attributes attributes)

Implements io.opentelemetry.api.common.AttributesBuilder.putAll.

Puts all the provided attributes into this Builder.

public <T> AttributesBuilder
remove(AttributeKey<T> key)

Overrides default io.opentelemetry.api.common.AttributesBuilder.remove.

Remove all attributes where AttributeKey#getKey() and AttributeKey#getType() match the key.

public AttributesBuilder
removeIf(Predicate<AttributeKey<?>> predicate)

Overrides default io.opentelemetry.api.common.AttributesBuilder.removeIf.

Remove all attributes that satisfy the given predicate.

pack-priv static List<Double>
toList(double... values)

pack-priv static List<Long>
toList(long... values)

pack-priv static List<Boolean>
toList(boolean... values)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private final List<Object> data

Constructor Detail

ArrayBackedAttributesBuilderback to summary
pack-priv ArrayBackedAttributesBuilder()
ArrayBackedAttributesBuilderback to summary
pack-priv ArrayBackedAttributesBuilder(List<Object> data)

Method Detail

buildback to summary
public Attributes build()

Implements io.opentelemetry.api.common.AttributesBuilder.build.

Doc from io.opentelemetry.api.common.AttributesBuilder.build.

Create the Attributes from this.

Annotations
@Override
putback to summary
public <T> AttributesBuilder put(AttributeKey<Long> key, int value)

Implements io.opentelemetry.api.common.AttributesBuilder.put, io.opentelemetry.api.common.AttributesBuilder.put.

Doc from io.opentelemetry.api.common.AttributesBuilder.put.

Puts a AttributeKey with associated value into this.

The type parameter is unused.

Annotations
@Override
putback to summary
public <T> AttributesBuilder put(AttributeKey<T> key, T value)

Implements io.opentelemetry.api.common.AttributesBuilder.put.

Doc from io.opentelemetry.api.common.AttributesBuilder.put.

Puts a AttributeKey with associated value into this.

Annotations
@Override
putAllback to summary
public AttributesBuilder putAll(Attributes attributes)

Implements io.opentelemetry.api.common.AttributesBuilder.putAll.

Doc from io.opentelemetry.api.common.AttributesBuilder.putAll.

Puts all the provided attributes into this Builder.

Returns:AttributesBuilder

this Builder

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
removeback to summary
public <T> AttributesBuilder remove(AttributeKey<T> key)

Overrides default io.opentelemetry.api.common.AttributesBuilder.remove.

Doc from io.opentelemetry.api.common.AttributesBuilder.remove.

Remove all attributes where AttributeKey#getKey() and AttributeKey#getType() match the key.

Returns:AttributesBuilder

this Builder

Annotations
@Override
removeIfback to summary
public AttributesBuilder removeIf(Predicate<AttributeKey<?>> predicate)

Overrides default io.opentelemetry.api.common.AttributesBuilder.removeIf.

Doc from io.opentelemetry.api.common.AttributesBuilder.removeIf.

Remove all attributes that satisfy the given predicate. Errors or runtime exceptions thrown by the predicate are relayed to the caller.

Returns:AttributesBuilder

this Builder

Annotations
@Override
toListback to summary
pack-priv static List<Double> toList(double... values)
toListback to summary
pack-priv static List<Long> toList(long... values)
toListback to summary
pack-priv static List<Boolean> toList(boolean... values)