Skip to content

Commit b257146

Browse files
authored
feat(event): filter more exceptions by default (#550)
1 parent 46b1a18 commit b257146

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/sentry/default_event_filter.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ defmodule Sentry.DefaultEventFilter do
44
@moduledoc false
55

66
@ignored_exceptions [
7+
Phoenix.NotAcceptableError,
78
Phoenix.Router.NoRouteError,
8-
Plug.Parsers.RequestTooLargeError,
9+
Plug.Conn.InvalidQueryError,
910
Plug.Parsers.BadEncodingError,
1011
Plug.Parsers.ParseError,
11-
Plug.Parsers.UnsupportedMediaTypeError
12+
Plug.Parsers.RequestTooLarge,
13+
Plug.Parsers.UnsupportedMediaTypeError,
14+
Plug.Static.InvalidPathError
1215
]
1316

1417
def exclude_exception?(%x{}, :plug) when x in @ignored_exceptions do

0 commit comments

Comments
 (0)