Class: Datadog::Profiling::Events::StackExceptionSample

Inherits:
Stack show all
Defined in:
lib/ddtrace/profiling/events/stack.rb

Overview

Describes a stack sample with exception

Instance Attribute Summary collapse

Attributes inherited from Stack

#frames, #hash, #span_id, #thread_id, #total_frame_count, #trace_id

Attributes inherited from Datadog::Profiling::Event

#timestamp

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, frames, total_frame_count, thread_id, trace_id, span_id, exception) ⇒ StackExceptionSample

Returns a new instance of StackExceptionSample.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/ddtrace/profiling/events/stack.rb', line 79

def initialize(
  timestamp,
  frames,
  total_frame_count,
  thread_id,
  trace_id,
  span_id,
  exception
)
  super(
    timestamp,
    frames,
    total_frame_count,
    thread_id,
    trace_id,
    span_id
  )

  @exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



76
77
78
# File 'lib/ddtrace/profiling/events/stack.rb', line 76

def exception
  @exception
end