We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0a80ab + 769174b commit 5ce0a8fCopy full SHA for 5ce0a8f
lib/sentry/default_event_filter.ex
@@ -3,7 +3,15 @@ defmodule Sentry.DefaultEventFilter do
3
4
@moduledoc false
5
6
- def exclude_exception?(%x{}, :plug) when x in [Phoenix.Router.NoRouteError] do
+ @ignored_exceptions [
7
+ Phoenix.Router.NoRouteError,
8
+ Plug.Parsers.RequestTooLarge,
9
+ Plug.Parsers.BadEncodingError,
10
+ Plug.Parsers.ParseError,
11
+ Plug.Parsers.UnsupportedMediaTypeError
12
+ ]
13
+
14
+ def exclude_exception?(%x{}, :plug) when x in @ignored_exceptions do
15
true
16
end
17
0 commit comments