Method: Sentry::StacktraceBuilder#initialize

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

#initialize(project_root:, app_dirs_pattern:, linecache:, context_lines:, backtrace_cleanup_callback: nil, strip_backtrace_load_path: true) ⇒ StacktraceBuilder

Returns a new instance of StacktraceBuilder.

Parameters:

  • project_root (String)
  • app_dirs_pattern (Regexp, nil)
  • linecache (LineCache)
  • context_lines (Integer, nil)
  • backtrace_cleanup_callback (Proc, nil) (defaults to: nil)
  • strip_backtrace_load_path (Boolean) (defaults to: true)

See Also:

[View source]

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/sentry/interfaces/stacktrace_builder.rb', line 35

def initialize(
  project_root:,
  app_dirs_pattern:,
  linecache:,
  context_lines:,
  backtrace_cleanup_callback: nil,
  strip_backtrace_load_path: true
)
  @project_root = project_root
  @app_dirs_pattern = app_dirs_pattern
  @linecache = linecache
  @context_lines = context_lines
  @backtrace_cleanup_callback = backtrace_cleanup_callback
  @strip_backtrace_load_path = strip_backtrace_load_path
end