Class: Google::Cloud::Trace::V2::Span::Attributes

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudtrace/v2/trace.rb

Overview

A set of attributes as key-value pairs.

Defined Under Namespace

Classes: AttributeMapEntry

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_map::Google::Protobuf::Map{::String => ::Google::Cloud::Trace::V2::AttributeValue}

Returns 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 }
"abc.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 }
    "abc.com/myattribute": { "bool_value": false }
    


123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 123

class Attributes
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Trace::V2::AttributeValue]
  class AttributeMapEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#dropped_attributes_count::Integer

Returns 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.



123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 123

class Attributes
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Trace::V2::AttributeValue]
  class AttributeMapEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end