Stackdriver Trace V2 Client - Class Attributes (1.4.11)

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

A set of attributes, each in the format [KEY]:[VALUE].

Generated from protobuf message google.devtools.cloudtrace.v2.Span.Attributes

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attribute_map array|Google\Protobuf\Internal\MapField

The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values true and false. For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }

↳ dropped_attributes_count int

The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.

getAttributeMap

The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values true and false. For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }

Generated from protobuf field map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAttributeMap

The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values true and false. For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }

Generated from protobuf field map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1;

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDroppedAttributesCount

The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes.

If this value is 0 then all attributes are valid.

Generated from protobuf field int32 dropped_attributes_count = 2;

Returns
TypeDescription
int

setDroppedAttributesCount

The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes.

If this value is 0 then all attributes are valid.

Generated from protobuf field int32 dropped_attributes_count = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this