Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::Attributes.
A set of attributes, each in the format [KEY]:[VALUE]
.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attribute_map
def attribute_map() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}) —
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
andfalse
. For example:"/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }
#attribute_map=
def attribute_map=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}
-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}) —
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
andfalse
. For example:"/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}) —
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
andfalse
. For example:"/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false }
#dropped_attributes_count
def dropped_attributes_count() -> ::Integer
- (::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=
def dropped_attributes_count=(value) -> ::Integer
- 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.
- (::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.