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
blacklist_keys not being filtered out in version 4.2.3 #468
Comments
It might be related to this change: https://github.com/airbrake/airbrake-ruby/pull/464/files?file-filters%5B%5D=.rb#diff-7826f2319fdc504a7b95dc815db44b04R465 My suspicion is: calling |
I can confirm the issue. |
Fixes #468 (blacklist_keys not being filtered out in version 4.2.3) The problem was that at the time when we initialize NoticeNotifier (on library load) the Config has no blacklist/whitelist keys specified. Therefore, when we `configure` Airbrake, newly set values have no effect. With this change we move conditional filter initialization out of NoticeNotifier. The risk is that calling `configure` twice will append the same conditional filters twice. Therefore, `reset` must be called prior to second `configure` (but it's probably a good idea not to call it twice and it should be very uncommon).
Fixes #468 (blacklist_keys not being filtered out in version 4.2.3) The problem was that at the time when we initialize NoticeNotifier (on library load) the Config has no blacklist/whitelist keys specified. Therefore, when we `configure` Airbrake, newly set values have no effect. With this change we move conditional filter initialization out of NoticeNotifier. The risk is that calling `configure` twice will append the same conditional filters twice. Therefore, `reset` must be called prior to second `configure` (but it's probably a good idea not to call it twice and it should be very uncommon).
Should be fixed in v4.2.4. |
Airbrake config
Description
The
blacklist_keys
are no longer being filtered out of the parameters. I can test this way from the Rails console:On airbrake-ruby version 4.2.2, the parameters show up in the Airbrake UI as:
On version 4.2.3 of the gem, that filtering doesn't happen:
I was able to get blacklist filtering to work again by adding this to the initializer, right after the
Airbrake.configure
block:The text was updated successfully, but these errors were encountered: