mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
Fingerprint DBConnection.ConnectionError in Sentry (#2597)
This commit is contained in:
parent
cb5d8a0d25
commit
5ba8697c31
@ -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…
Reference in New Issue
Block a user