Class: Google::Devtools::Cloudtrace::V2::Span::Link
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Devtools::Cloudtrace::V2::Span::Link
 
 
- Defined in:
 - lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.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.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
- 
  
    
      #attributes  ⇒ Google::Devtools::Cloudtrace::V2::Span::Attributes 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A set of attributes on the link.
 - 
  
    
      #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  ⇒ Google::Devtools::Cloudtrace::V2::Span::Link::Type 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The relationship of the current span relative to the linked span.
 
Instance Attribute Details
#attributes ⇒ Google::Devtools::Cloudtrace::V2::Span::Attributes
Returns A set of attributes on the link. You have have up to 32 attributes per link.
      196 197 198 199 200 201 202 203 204 205 206 207 208 209  | 
    
      # File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 196 class Link # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end  | 
  
#span_id ⇒ String
Returns The [SPAN_ID] for a span within a trace.
      196 197 198 199 200 201 202 203 204 205 206 207 208 209  | 
    
      # File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 196 class Link # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end  | 
  
#trace_id ⇒ String
Returns The [TRACE_ID] for a trace within a project.
      196 197 198 199 200 201 202 203 204 205 206 207 208 209  | 
    
      # File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 196 class Link # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end  | 
  
#type ⇒ Google::Devtools::Cloudtrace::V2::Span::Link::Type
Returns The relationship of the current span relative to the linked span.
      196 197 198 199 200 201 202 203 204 205 206 207 208 209  | 
    
      # File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 196 class Link # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end  |