public function attributeAdded(Span $span, $attribute, $value)
    {
        // If the span is already attached (managed by the extension), then
        // tell the extension to add the attribute.
        if ($span->attached()) {
            $this->addAttribute($attribute, $value, [
                'span' => $span
            ]);
        }
    }
public function attributeAdded(Span $span, $attribute, $value)
    {
        // If the span is already attached (managed by the extension), then
        // tell the extension to add the attribute.
        if ($span->attached()) {
            $this->addAttribute($attribute, $value, [
                'span' => $span
            ]);
        }
    }
public function attributeAdded ( Span $ span , $ attribute , $ value ) { // If the span is already attached (managed by the extension), then // tell the extension to add the attribute. if ( $ span -> attached ( ) ) { $ this -> addAttribute ( $ attribute , $ value , [ 'span' => $ span ] ) ; } }
Triggers when an attribute is added to a span.

@param Span $span The span the attribute was added to
@param string $attribute The name of the attribute added
@param string $value The attribute value
Triggers when an attribute is added to a span .