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 7c68ca9 + 280c2f0 commit 893e2e9Copy full SHA for 893e2e9
lib/sentry/event_filter.ex
@@ -17,6 +17,16 @@ defmodule Sentry.EventFilter do
17
def exclude_exception?(_exception, _source), do: false
18
end
19
20
+ Alternatively, if you want to skip all non-500 exceptions in a Plug app:
21
+
22
+ defmodule MyApp.SentryEventFilter do
23
+ @behaviour Sentry.EventFilter
24
25
+ def exclude_exception?(exception, _) do
26
+ Plug.Exception.status(exception) < 500
27
+ end
28
29
30
Sentry uses `Sentry.DefaultEventFilter` by default.
31
"""
32
0 commit comments