Group Mint.TransportError in Sentry (#5659)

This commit is contained in:
Adam Rutkowski 2025-08-20 10:40:17 +02:00 committed by GitHub
parent 3a720b5d60
commit 43b52d599b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ defmodule Plausible.SentryFilter do
%{event | fingerprint: ["db_connection", reason]}
end
def before_send(
%{
exception: [%{type: "Mint.TransportError"}],
original_exception: %{reason: reason}
} = event
) do
%{event | fingerprint: ["mint_transport", reason]}
end
def before_send(%{extra: %{request: %Plausible.Ingestion.Request{}}} = event) do
%{event | fingerprint: ["ingestion_request"]}
end