Filter out noisy exception from Sentry (#2058)

Signed-off-by: Manu S Ajith <neo@codingarena.in>
This commit is contained in:
Manu S Ajith 2022-07-28 07:17:47 -05:00 committed by GitHub
parent 972ba2482b
commit ca15b605b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ defmodule Plausible.SentryFilter do
@behaviour Sentry.EventFilter
def exclude_exception?(%Sentry.CrashError{}, _source), do: true
def exclude_exception?(%Phoenix.NotAcceptableError{}, _), do: true
def exclude_exception?(exception, source) do
Sentry.DefaultEventFilter.exclude_exception?(exception, source)