Method: Sentry::Configuration#backtrace_cleanup_callback

Defined in:
lib/sentry/configuration.rb

#backtrace_cleanup_callbackProc?

a proc/lambda that takes an array of stack traces it’ll be used to silence (reduce) backtrace of the exception

Examples:

config.backtrace_cleanup_callback = lambda do |backtrace|
  Rails.backtrace_cleaner.clean(backtrace)
end

Returns:

  • (Proc, nil)
[View source]

64
65
66
# File 'lib/sentry/configuration.rb', line 64

def backtrace_cleanup_callback
  @backtrace_cleanup_callback
end