A 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 or 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
A 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 or false. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
A 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 or false. For example:
"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"example.com/myattribute": { "bool_value": false }
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Trace V2 Client - Class Attributes (1.8.10)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.10 (latest)](/php/docs/reference/cloud-trace/latest/V2.Span.Attributes)\n- [1.8.9](/php/docs/reference/cloud-trace/1.8.9/V2.Span.Attributes)\n- [1.7.0](/php/docs/reference/cloud-trace/1.7.0/V2.Span.Attributes)\n- [1.6.5](/php/docs/reference/cloud-trace/1.6.5/V2.Span.Attributes)\n- [1.5.3](/php/docs/reference/cloud-trace/1.5.3/V2.Span.Attributes)\n- [1.4.11](/php/docs/reference/cloud-trace/1.4.11/V2.Span.Attributes) \nReference documentation and code samples for the Stackdriver Trace V2 Client class Attributes.\n\nA set of attributes as key-value pairs.\n\nGenerated from protobuf message `google.devtools.cloudtrace.v2.Span.Attributes`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Trace \\\\ V2 \\\\ Span\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAttributeMap\n\nA set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, a signed 64-bit integer,\nor the boolean values `true` or `false`. For example:\n\"/instance_id\": { \"string_value\": { \"value\": \"my-instance\" } }\n\"/http/request_bytes\": { \"int_value\": 300 }\n\"example.com/myattribute\": { \"bool_value\": false }\n\n### setAttributeMap\n\nA set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, a signed 64-bit integer,\nor the boolean values `true` or `false`. For example:\n\"/instance_id\": { \"string_value\": { \"value\": \"my-instance\" } }\n\"/http/request_bytes\": { \"int_value\": 300 }\n\"example.com/myattribute\": { \"bool_value\": false }\n\n### getDroppedAttributesCount\n\nThe number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\n\nIf this value is 0 then all attributes are valid.\n\n### setDroppedAttributesCount\n\nThe number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\n\nIf this value is 0 then all attributes are valid."]]