Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Rails/ActiveSupport backtrace cleaner in config #913

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

waltjones
Copy link
Contributor

Fixes: #900

Allows setting a Rails or ActiveSupport backtrace cleaner in the config.

Example:

Rollbar.configure do |config|
  config.backtrace_cleaner = Rails::BacktraceCleaner.new
end

This option is compatible with any object that implements the ActiveSupport::BacktraceCleaner interface.

It is also possible to apply a backtrace cleaner in a before_process handler, but it will have no effect on traces generated using populate_empty_backtraces. The new option is compatible with populate_empty_backtraces, is simpler to use, and will be called only for message types that contain a stack trace.

@waltjones waltjones merged commit 4c6efe6 into master Nov 14, 2019
@waltjones waltjones deleted the wj-backtrace-cleaner branch June 27, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide an option to clean the backtrace reported to Rollbar
1 participant