Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Filter out noisy exception from Sentry (#2058)

Manu S Ajithca15b605b7f0
diff --git a/lib/sentry_filter.ex b/lib/sentry_filter.ex
index cf9a762f0b..96210129f8 100644
--- a/lib/sentry_filter.ex
+++ b/lib/sentry_filter.ex
@@ -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)