Trace/src/AttributeTrait.php
public function addAttribute($key, $value)
    {
        if (!$this->attributes) {
            $this->attributes = new Attributes();
        }

        $this->attributes[$key] = $value;
    }
public function addAttribute($key, $value)
    {
        if (!$this->attributes) {
            $this->attributes = new Attributes();
        }

        $this->attributes[$key] = $value;
    }
public function addAttribute ( $ key , $ value ) { if ( ! $ this -> attributes ) { $ this -> attributes = new Attributes ( ) ; } $ this -> attributes [ $ key ] = $ value ; }
Attach a single label to this span.

@param string $label The name of the label.
@param mixed $value The value of the label. Will be cast to a string
Attach a single label to this span .