Trace/src/V2/Span.php
public function setAttributes($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Trace\V2\Span_Attributes::class);
        $this->attributes = $var;

        return $this;
    }
public function setAttributes($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Trace\V2\Span_Attributes::class);
        $this->attributes = $var;

        return $this;
    }
public function setAttributes ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Trace \ V2 \ Span_Attributes :: class ) ; $ this -> attributes = $ var ; return $ this ; }
A set of attributes on the span. You can have up to 32 attributes per
span.

Generated from protobuf field <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;</code>
@param \Google\Cloud\Trace\V2\Span\Attributes $var
@return $this
A set of attributes on the span . You can have up to 32 attributes per span .