Inspect extra sentry payload for get_invoices/1 failure (#2248)

* Inspect extra sentry payload for get_invoices/1 failure

* Include params and invoices url in paddle trace
This commit is contained in:
Adam Rutkowski 2022-09-20 14:06:53 +02:00 committed by GitHub
parent 669091f2ef
commit 30b79e5239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ defmodule Plausible.Billing.PaddleApi do
else
error ->
Sentry.capture_message("Failed to retrieve invoices from Paddle",
extra: %{extra: error}
extra: %{extra: inspect(error), params: params, invoices_url: invoices_url()}
)
{:error, :request_failed}