Method: Sentry::ThreadsInterface.build

Defined in:
lib/sentry/interfaces/threads.rb

.build(backtrace:, stacktrace_builder:, **options) ⇒ ThreadsInterface

Builds the ThreadsInterface with given backtrace and stacktrace_builder. Patch this method if you want to change a threads interface’s stacktrace frames.

Parameters:

Returns:

See Also:



37
38
39
40
# File 'lib/sentry/interfaces/threads.rb', line 37

def self.build(backtrace:, stacktrace_builder:, **options)
  stacktrace = stacktrace_builder.build(backtrace: backtrace) if backtrace
  new(**options, stacktrace: stacktrace)
end