Stackdriver Trace Client - Class Attributes (1.8.8)

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 Annotation, Link, and Span.

Example:

$attributes['foo'] = 'bar';
echo $attributes['foo'];

Namespace

Google \ Cloud \ Trace

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