Class: Google::Apis::CloudtraceV2::StackTrace
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CloudtraceV2::StackTrace
 
 
- 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 call stack appearing in a trace.
Instance Attribute Summary collapse
- 
  
    
      #stack_frames  ⇒ Google::Apis::CloudtraceV2::StackFrames 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A collection of stack frames, which can be truncated.
 - 
  
    
      #stack_trace_hash_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ StackTrace 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of StackTrace.
 - 
  
    
      #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) ⇒ StackTrace
Returns a new instance of StackTrace
      542 543 544  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 542 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#stack_frames ⇒ Google::Apis::CloudtraceV2::StackFrames
A collection of stack frames, which can be truncated.
Corresponds to the JSON property stackFrames
      529 530 531  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 529 def stack_frames @stack_frames end  | 
  
#stack_trace_hash_id ⇒ Fixnum
The hash ID is used to conserve network bandwidth for duplicate
stack traces within a single trace.
Often multiple spans will have identical stack traces.
The first occurrence of a stack trace should contain both the
stackFrame content and a value in stackTraceHashId.
Subsequent spans within the same request can refer
to that stack trace by only setting stackTraceHashId.
Corresponds to the JSON property stackTraceHashId
      540 541 542  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 540 def stack_trace_hash_id @stack_trace_hash_id end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      547 548 549 550  | 
    
      # File 'generated/google/apis/cloudtrace_v2/classes.rb', line 547 def update!(**args) @stack_frames = args[:stack_frames] if args.key?(:stack_frames) @stack_trace_hash_id = args[:stack_trace_hash_id] if args.key?(:stack_trace_hash_id) end  |