Class: Google::Apis::ServicecontrolV1::SpanContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb

Overview

The context of a span, attached to Exemplars in Distribution values during aggregation. It contains the name of a span with format: projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SpanContext

Returns a new instance of SpanContext.



2290
2291
2292
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2290

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#span_nameString

The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. Corresponds to the JSON property spanName

Returns:

  • (String)


2288
2289
2290
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2288

def span_name
  @span_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2295
2296
2297
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2295

def update!(**args)
  @span_name = args[:span_name] if args.key?(:span_name)
end