Class: Google::Apis::CloudtraceV2::Link
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudtraceV2::Link
 
- Defined in:
- generated/google/apis/cloudtrace_v2/classes.rb,
 generated/google/apis/cloudtrace_v2/representations.rb,
 generated/google/apis/cloudtrace_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
- 
  
    
      #attributes  ⇒ Google::Apis::CloudtraceV2::Attributes 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A set of attributes, each in the format [KEY]:[VALUE].
- 
  
    
      #span_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The [SPAN_ID] for a span within a trace. 
- 
  
    
      #trace_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The [TRACE_ID] for a trace within a project. 
- 
  
    
      #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 Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link
| 181 182 183 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 181 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#attributes ⇒ Google::Apis::CloudtraceV2::Attributes
A set of attributes, each in the format [KEY]:[VALUE].
Corresponds to the JSON property attributes
| 164 165 166 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 164 def attributes @attributes end | 
#span_id ⇒ String
The [SPAN_ID] for a span within a trace.
Corresponds to the JSON property spanId
| 169 170 171 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 169 def span_id @span_id end | 
#trace_id ⇒ String
The [TRACE_ID] for a trace within a project.
Corresponds to the JSON property traceId
| 174 175 176 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 174 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
| 179 180 181 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 179 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 186 187 188 189 190 191 | # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 186 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 |