From 4a33cd0a259e5632fe049e4d2bcbfca85ca5639d Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 14 Jul 2022 03:26:59 +0300 Subject: [PATCH] Delegate to default Sentry filter --- lib/sentry_filter.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/sentry_filter.ex b/lib/sentry_filter.ex index 7c7f7219d..cf9a762f0 100644 --- a/lib/sentry_filter.ex +++ b/lib/sentry_filter.ex @@ -2,5 +2,8 @@ defmodule Plausible.SentryFilter do @behaviour Sentry.EventFilter def exclude_exception?(%Sentry.CrashError{}, _source), do: true - def exclude_exception?(exception, source), do: false + + def exclude_exception?(exception, source) do + Sentry.DefaultEventFilter.exclude_exception?(exception, source) + end end