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\Google\Cloud\Trace\Annotation, Google\Cloud\Trace\Google\Cloud\Trace\Link, and Google\Cloud\Trace\Google\Cloud\Trace\Span.
Example:
$attributes['foo'] = 'bar';
echo $attributes['foo'];
Methods
offsetSet
Callback for \ArrayAccess []= setter.
Parameters | |
---|---|
Name | Description |
offset |
string
|
value |
mixed
|
offsetExists
Callback for \ArrayAccess isset.
Parameter | |
---|---|
Name | Description |
offset |
string
|
offsetUnset
Callback for \ArrayAccess unset.
Parameter | |
---|---|
Name | Description |
offset |
string
|
offsetGet
Callback for \ArrayAccess [$key] getter.
Parameter | |
---|---|
Name | Description |
offset |
string
|
info
Returns a serializable array representing this Link.
Returns | |
---|---|
Type | Description |
array |