Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
remove unused Sentry before_send Clickhousex clauses (#4996)
ruslandogaad4e9ee0ffa6
diff --git a/lib/sentry_filter.ex b/lib/sentry_filter.exindex 9b71cbc06d..adc1bf3704 100644--- a/lib/sentry_filter.ex+++ b/lib/sentry_filter.ex@@ -10,17 +10,6 @@ defmodule Plausible.SentryFilter dodef before_send(%{original_exception: %Plug.CSRFProtection.InvalidCSRFTokenError{}}), do: falsedef before_send(%{original_exception: %Plug.Static.InvalidPathError{}}), do: false- def before_send(- %{exception: [%{type: "Clickhousex.Error"}], original_exception: %{code: code}} = event- )- when is_atom(code) do- %{event | fingerprint: ["clickhouse", "db_connection", to_string(code)]}- end-- def before_send(%{event_source: :logger, message: "Clickhousex.Protocol " <> _} = event) do- %{event | fingerprint: ["clickhouse", "db_connection", "protocol_error"]}- end-def before_send(%{exception: [%{type: "DBConnection.ConnectionError"}],