remove unused Sentry before_send Clickhousex clauses (#4996)

This commit is contained in:
ruslandoga 2025-01-21 15:08:31 +03:00 committed by GitHub
parent 9a4969e105
commit ad4e9ee0ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 11 deletions

View File

@ -10,17 +10,6 @@ defmodule Plausible.SentryFilter do
def before_send(%{original_exception: %Plug.CSRFProtection.InvalidCSRFTokenError{}}), do: false
def 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"}],