AttributesBuilder

zio.blocks.telemetry.Attributes.AttributesBuilder

Mutable builder for Attributes.

Attributes

Source
Attributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Builds and returns the immutable Attributes.

Builds and returns the immutable Attributes.

Attributes

Source
Attributes.scala

Builds Attributes by handing off internal arrays (zero copy). After calling this, the builder's arrays are reset to fresh allocations. Use this when the builder is obtained from a pool and will be reused.

Builds Attributes by handing off internal arrays (zero copy). After calling this, the builder's arrays are reset to fresh allocations. Use this when the builder is obtained from a pool and will be reused.

Attributes

Source
Attributes.scala
def clear(): Unit

Attributes

Source
Attributes.scala
def put[A](key: AttributeKey[A], value: A): AttributesBuilder

Adds or updates a typed attribute.

Adds or updates a typed attribute.

Attributes

Source
Attributes.scala
def put(key: String, value: String): AttributesBuilder

Adds or updates a string attribute.

Adds or updates a string attribute.

Attributes

Source
Attributes.scala
def put(key: String, value: Long): AttributesBuilder

Adds or updates a long attribute.

Adds or updates a long attribute.

Attributes

Source
Attributes.scala
def put(key: String, value: Double): AttributesBuilder

Adds or updates a double attribute.

Adds or updates a double attribute.

Attributes

Source
Attributes.scala
def put(key: String, value: Boolean): AttributesBuilder

Adds or updates a boolean attribute.

Adds or updates a boolean attribute.

Attributes

Source
Attributes.scala