class Sentry::ThreadsInterface
def self.build(backtrace:, stacktrace_builder:, **options)
-
(ThreadsInterface)
-
Parameters:
-
crashed
(Hash
) -- -
stacktrace_builder
(StacktraceBuilder
) -- -
backtrace
(Array
) --
Other tags:
- See: StacktraceBuilder.build -
def self.build(backtrace:, stacktrace_builder:, **options) stacktrace = stacktrace_builder.build(backtrace: backtrace) if backtrace new(**options, stacktrace: stacktrace) end
def initialize(crashed: false, stacktrace: nil)
-
stacktrace
(Array
) -- -
crashed
(Boolean
) --
def initialize(crashed: false, stacktrace: nil) @id = Thread.current.object_id @name = Thread.current.name @current = true @crashed = crashed @stacktrace = stacktrace end
def to_hash
-
(Hash)
-
def to_hash { values: [ { id: @id, name: @name, crashed: @crashed, current: @current, stacktrace: @stacktrace&.to_hash } ] } end