Stackdriver Trace Client - Class Annotation (1.7.0)

Reference documentation and code samples for the Stackdriver Trace Client class Annotation.

This plain PHP class represents an Annotation resource. Text annotation with a set of attributes.

Example:

use Google\Cloud\Trace\Annotation;

$annotation = new Annotation('some note');
$span->addTimeEvent($annotation);

Namespace

Google \ Cloud \ Trace

Methods

__construct

Create a new Annotation.

Parameters
NameDescription
description string

A user-supplied message describing the event. The maximum length for the description is 256 bytes.

options array

Configuration options.

↳ attributes array

A set of attributes on the annotation. You can have up to 4 attributes per Annotation.

info

Returns a serializable array representing this Link.

Returns
TypeDescription
array