Class: Google::Apis::TracingV1::Link
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::Link
- 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
-
#span_id ⇒ Fixnum
The
id
of the linked span. -
#trace_id ⇒ String
The ID of the parent trace of the linked span.
-
#type ⇒ String
The relationship of the current span relative to the linked span.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_id ⇒ Fixnum
The id
of the linked span.
Corresponds to the JSON property spanId
252 253 254 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 252 def span_id @span_id end |
#trace_id ⇒ String
The ID of the parent trace of the linked span.
Corresponds to the JSON property traceId
247 248 249 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 247 def trace_id @trace_id end |
#type ⇒ String
The relationship of the current span relative to the linked span.
Corresponds to the JSON property type
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 |