mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 23:27:54 +03:00
ca15b605b7
Signed-off-by: Manu S Ajith <neo@codingarena.in>
11 lines
330 B
Elixir
11 lines
330 B
Elixir
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)
|
|
end
|
|
end
|