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, each in the format [KEY]:[VALUE].

Defined Under Namespace

Classes: AttributeMapEntry

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns 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 and 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})

    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 and false. For example:

    "/instance_id": { "string_value": { "value": "my-instance" } }
    "/http/request_bytes": { "int_value": 300 }
    "abc.com/myattribute": { "bool_value": false }
    


118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 118

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.



118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 118

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