Builder

org.typelevel.otel4s.Attributes.Builder
final class Builder extends Builder[Attribute[_], Attributes]

A mutable builder of Attributes.

Attributes

Source
Attributes.scala
Graph
Supertypes
trait Growable[Attribute[_]]
trait Clearable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def addAll(attributes: IterableOnce[Attribute[_]]): this.type

Adds the given attributes to the builder.

Adds the given attributes to the builder.

Value parameters

attributes

the attributes to add

Attributes

Note

if the keys of the given attributes are already present in the builder, the values will be overwritten with the corresponding given attributes.

Definition Classes
Source
Attributes.scala
def addOne[A](key: AttributeKey[A], value: A): this.type

Adds the attribute with the given key and value to the builder.

Adds the attribute with the given key and value to the builder.

Value parameters

key

the key of the attribute. Denotes the types of the value

value

the value of the attribute

Attributes

Note

if the given key is already present in the builder, the value will be overwritten with the given value.

Source
Attributes.scala
def addOne[A : KeySelect](name: String, value: A): this.type

Adds the attribute with the given key (created from name) and value to the builder.

Adds the attribute with the given key (created from name) and value to the builder.

Value parameters

name

the name of the attribute's key

value

the value of the attribute

Attributes

Note

if the given key is already present in the builder, the value will be overwritten with the given value.

Source
Attributes.scala
def addOne(attribute: Attribute[_]): this.type

Adds the given attribute to the builder.

Adds the given attribute to the builder.

Value parameters

attribute

the attribute to add

Attributes

Note

if the key of the given attribute is already present in the builder, the value will be overwritten with the corresponding given attribute.

Source
Attributes.scala
def clear(): Unit

Attributes

Source
Attributes.scala

Creates Attributes with the attributes of this builder.

Creates Attributes with the attributes of this builder.

Attributes

Source
Attributes.scala
override def sizeHint(size: Int): Unit

Attributes

Definition Classes
Source
Attributes.scala

Inherited methods

final def ++=(xs: IterableOnce[Attribute[_]]): Growable.this.type

Attributes

Inherited from:
Growable
final def +=(elem: Attribute[_]): Growable.this.type

Attributes

Inherited from:
Growable
def knownSize: Int

Attributes

Inherited from:
Growable

Attributes

Inherited from:
Builder
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Deprecated and Inherited methods

final def +=(elem1: Attribute[_], elem2: Attribute[_], elems: Attribute[_]*): Growable.this.type

Attributes

Deprecated
[Since version 2.13.0] Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated
Inherited from:
Growable