Add :rails_backtrace_cleaner level option
This option will share the backtrace cleaner that is used to remove lines from exception backtraces, configured in applications as Rails.backtrace_cleaner.
I just saw that this had previously been removed. I'm avoiding clearing things in the backtrace filter when setting to the shared one but another option would be to duplicate it when set this way, which may also avoid the pitfalls of the previous version.
Hi Caleb,. Thank you for your contribution. I think duplicating it makes sense. It won't prevent conflicts with other gems that may be loaded and make changes to the backtrace cleaner before our gem is loaded, but people can always use one of the other levels if that happens.
That's been changed.
setup_backtrace_cleaner has to return the cleaner object.
Also, can you please add a test case for the new cleaner here?
The CI is broken and I currently don't have the bandwidth to fix it, but please run the specs locally.