-
-
Notifications
You must be signed in to change notification settings - Fork 203
Remove bandit from default excluded domains and recommend PlugCapture only for Cowboy #900
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
Remove bandit from default excluded domains and recommend PlugCapture only for Cowboy #900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My gut feeling is that removing :bandit
from the default is not really necessary. It's mostly going to be ignored, right?
bd99716
to
803c51d
Compare
Co-authored-by: Andrea Leopardi <an.leopardi@gmail.com>
Co-authored-by: Andrea Leopardi <an.leopardi@gmail.com>
Currently logger handler ignores them to let Check out this test modification. If we both exclude @tag handler_config: %{excluded_domains: [:bandit]}
test "sends two errors when a Plug process crashes if PlugCapture is used and :bandit not excluded",
%{sender_ref: ref} do
start_supervised!({Sentry.ExamplePlugApplication, server: :bandit}, restart: :temporary)
:hackney.get("http://127.0.0.1:8003/error_route", [], "", [])
assert_receive {^ref, _event}, 1000 # This assertion fails
# assert_receive {^ref, _event}, 1000
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally correct, sorry! 💯
That was fast 😅 I'll make a PR to https://github.com/getsentry/sentry-docs tomorrow morning! |
Thank you @martosaur! Please tag me in there because I don't have notifications on for that. |
Closes #895
See the issue for a write up. The PR here mostly updates the docs. The important change is removing
:bandit
from the list of excluded domains. Not sure if this counts as a breaking change or not. Users who use defaultexcluded_domains
withPlugCapture
will see duplicated errors after upgrade 🤔 Let me know what you think!