class OpenTelemetry::Attributes::Builder

Overview

Collects attributes for an immutable result. Concurrency: mutable and intended for a single owner.

Defined in:

api/attributes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def []=(key : String, value) : Nil #

[View source]
def build : Attributes #

Transfers the collected entries into an immutable result and resets the builder.


[View source]
def has_key?(key : String) : Bool #

[View source]
def merge(attributes) : self #

[View source]
def set(key : String, value) : self #

[View source]
def size : Int32 #

[View source]