class Google::Apis::CloudtraceV2::Link
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
Attributes
A set of attributes, each in the format `[KEY]:`. Corresponds to the JSON property `attributes` @return [Google::Apis::CloudtraceV2::Attributes]
The [SPAN_ID] for a span within a trace. Corresponds to the JSON property `spanId` @return [String]
The [TRACE_ID] for a trace within a project. Corresponds to the JSON property `traceId` @return [String]
The relationship of the current span relative to the linked span. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/cloudtrace_v2/classes.rb, line 177 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudtrace_v2/classes.rb, line 182 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @span_id = args[:span_id] if args.key?(:span_id) @trace_id = args[:trace_id] if args.key?(:trace_id) @type = args[:type] if args.key?(:type) end