Class: Google::Apis::TracingV1::Link

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

Overview

A pointer from this span to another span in a different Trace. Used (for example) in batching operations, where a single batch handler processes multiple requests from different traces.

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) ⇒ Link

Returns a new instance of Link



254
255
256
# File 'generated/google/apis/tracing_v1/classes.rb', line 254

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

Instance Attribute Details

#span_idFixnum

The id of the linked span. Corresponds to the JSON property spanId

Returns:

  • (Fixnum)


252
253
254
# File 'generated/google/apis/tracing_v1/classes.rb', line 252

def span_id
  @span_id
end

#trace_idString

The ID of the parent trace of the linked span. Corresponds to the JSON property traceId

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/tracing_v1/classes.rb', line 247

def trace_id
  @trace_id
end

#typeString

The relationship of the current span relative to the linked span. Corresponds to the JSON property type

Returns:

  • (String)


242
243
244
# File 'generated/google/apis/tracing_v1/classes.rb', line 242

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



259
260
261
262
263
# File 'generated/google/apis/tracing_v1/classes.rb', line 259

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