Cloud Trace V2 API - Class Google::Cloud::Trace::V2::Span::Attributes (v1.0.1)

Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::Attributes.

A set of attributes as key-value pairs.

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}
Returns
  • (::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:

    "/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}
Parameter
  • 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:

    "/instance_id": { "string_value": { "value": "my-instance" } }
    "/http/request_bytes": { "int_value": 300 }
    "example.com/myattribute": { "bool_value": false }
    
Returns
  • (::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:

    "/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
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.

#dropped_attributes_count=

def dropped_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.