Reference documentation and code samples for the Stackdriver Trace Client class Attributes.
This plain PHP class represents a Link resource. A set of attributes, each in the format [KEY]:[VALUE].
This class implements PHP's ArrayAccess , allowing access via the array syntax (example below).
Attributes are available to Google\Cloud\Trace\Annotation , Google\Cloud\Trace\Link , and Google\Cloud\Trace\Span .
Example:
$attributes['foo'] = 'bar';
echo $attributes['foo'];
Namespace
Google \ Cloud \ TraceMethods
offsetSet
Callback for \ArrayAccess []= setter.
offset
string
value
mixed
offsetExists
Callback for \ArrayAccess isset.
offset
string
offsetUnset
Callback for \ArrayAccess unset.
offset
string
offsetGet
Callback for \ArrayAccess [$key] getter.
offset
string
info
Returns a serializable array representing this Link.
array