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:
value (::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}) —
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:
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:
(::Integer) — 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.
#dropped_attributes_count=
defdropped_attributes_count=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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.
[[["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-09 UTC."],[],[],null,["# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::Span::Attributes (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-Span-Attributes)\n- [1.2.1](/ruby/docs/reference/google-cloud-trace-v2/1.2.1/Google-Cloud-Trace-V2-Span-Attributes)\n- [1.1.0](/ruby/docs/reference/google-cloud-trace-v2/1.1.0/Google-Cloud-Trace-V2-Span-Attributes)\n- [1.0.1](/ruby/docs/reference/google-cloud-trace-v2/1.0.1/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.9.0](/ruby/docs/reference/google-cloud-trace-v2/0.9.0/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.8.2](/ruby/docs/reference/google-cloud-trace-v2/0.8.2/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.7.0](/ruby/docs/reference/google-cloud-trace-v2/0.7.0/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.6.1](/ruby/docs/reference/google-cloud-trace-v2/0.6.1/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.5.0](/ruby/docs/reference/google-cloud-trace-v2/0.5.0/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.4.1](/ruby/docs/reference/google-cloud-trace-v2/0.4.1/Google-Cloud-Trace-V2-Span-Attributes)\n- [0.3.5](/ruby/docs/reference/google-cloud-trace-v2/0.3.5/Google-Cloud-Trace-V2-Span-Attributes) \nReference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::Attributes.\n\nA set of attributes as key-value pairs. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #attribute_map\n\n def attribute_map() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::Trace::V2::AttributeValue}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::Trace::V2::AttributeValue}) --- A set of attributes. Each attribute's key can be up to 128 bytes\n long. The value can be a string up to 256 bytes, a signed 64-bit integer,\n or the boolean values `true` or `false`. For example:\n\n \"/instance_id\": { \"string_value\": { \"value\": \"my-instance\" } }\n \"/http/request_bytes\": { \"int_value\": 300 }\n \"example.com/myattribute\": { \"bool_value\": false }\n\n### #attribute_map=\n\n def attribute_map=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::Trace::V2::AttributeValue}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::Trace::V2::AttributeValue}) ---\n\n A set of attributes. Each attribute's key can be up to 128 bytes\n long. The value can be a string up to 256 bytes, a signed 64-bit integer,\n or the boolean values `true` or `false`. For example: \n\n \"/instance_id\": { \"string_value\": { \"value\": \"my-instance\" } }\n \"/http/request_bytes\": { \"int_value\": 300 }\n \"example.com/myattribute\": { \"bool_value\": false }\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::Trace::V2::AttributeValue}) --- A set of attributes. Each attribute's key can be up to 128 bytes\n long. The value can be a string up to 256 bytes, a signed 64-bit integer,\n or the boolean values `true` or `false`. For example:\n\n \"/instance_id\": { \"string_value\": { \"value\": \"my-instance\" } }\n \"/http/request_bytes\": { \"int_value\": 300 }\n \"example.com/myattribute\": { \"bool_value\": false }\n\n### #dropped_attributes_count\n\n def dropped_attributes_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n### #dropped_attributes_count=\n\n def dropped_attributes_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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. \n**Returns**\n\n- (::Integer) --- 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."]]