Reference documentation and code samples for the Stackdriver Trace V2 Client class Annotation.
Text annotation with a set of attributes.
Generated from protobuf message google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ description |
Google\Cloud\Trace\V2\TruncatableString
A user-supplied message describing the event. The maximum length for the description is 256 bytes. |
↳ attributes |
Google\Cloud\Trace\V2\Span\Attributes
A set of attributes on the annotation. You can have up to 4 attributes per Annotation. |
getDescription
A user-supplied message describing the event. The maximum length for the description is 256 bytes.
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString description = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasDescription
clearDescription
setDescription
A user-supplied message describing the event. The maximum length for the description is 256 bytes.
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString description = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |
getAttributes
A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\Span\Attributes|null |
hasAttributes
clearAttributes
setAttributes
A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\Span\Attributes
|
Returns | |
---|---|
Type | Description |
$this |