Fingerprint DBConnection.ConnectionError in Sentry (#2597)

pull/2601/head
Adam Rutkowski 4 years ago committed by GitHub
parent cb5d8a0d25
commit 5ba8697c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,15 @@ defmodule Plausible.SentryFilter do
%{event | fingerprint: ["clickhouse", "db_connection", "protocol_error"]}
end
def before_send(
%{
exception: [%{type: "DBConnection.ConnectionError"}],
original_exception: %{reason: reason}
} = event
) do
%{event | fingerprint: ["db_connection", reason]}
end
def before_send(event) do
event
end

Loading…
Cancel
Save