Skip to content

Commit

Permalink
pass all headers
Browse files Browse the repository at this point in the history
  • Loading branch information
aloukissas committed Aug 8, 2024
1 parent 2406f73 commit 46b94d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/stripe/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ defmodule Stripe.API do
end

defp do_perform_request_and_retry(method, url, headers, body, opts, {:attempts, attempts}) do
api_version = headers["Stripe-Version"]
start_metadata = %{url: url, method: method, attempts: attempts, api_version: api_version}
start_metadata = %{url: url, method: method, attempts: attempts, headers: headers}

response =
:telemetry.span(~w[stripe request]a, start_metadata, fn ->
Expand Down

0 comments on commit 46b94d0

Please sign in to comment.