You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/sentry_filter.ex

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