Stackdriver Trace Client - Class Attributes (1.5.3)

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
NameDescription
offset string
value mixed

offsetExists

Callback for \ArrayAccess isset.

Parameter
NameDescription
offset string

offsetUnset

Callback for \ArrayAccess unset.

Parameter
NameDescription
offset string

offsetGet

Callback for \ArrayAccess [$key] getter.

Parameter
NameDescription
offset string

info

Returns a serializable array representing this Link.

Returns
TypeDescription
array