Class: Google::Devtools::Cloudtrace::V2::Span::Attributes

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb

Overview

A set of attributes, each in the format +[KEY]:[VALUE]+.

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_mapHash{String => Google::Devtools::Cloudtrace::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, an integer, or the Boolean values +true+ and +false+. For example:

"/instance_id": "my-instance"
"/http/user_agent": ""
"/http/request_bytes": 300
"abc.com/myattribute": true

Returns:

  • (Hash{String => Google::Devtools::Cloudtrace::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, an integer, or the Boolean values +true+ and +false+. For example:

    "/instance_id": "my-instance"
    "/http/user_agent": ""
    "/http/request_bytes": 300
    "abc.com/myattribute": true
    


106
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 106

class Attributes; end

#dropped_attributes_countInteger

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.



106
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 106

class Attributes; end