Skip to content

Commit

Permalink
feat: include headers in telemetry metadata (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloukissas authored Aug 8, 2024
1 parent 7207c02 commit 50ff9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ defmodule Stripe.API do
end

defp do_perform_request_and_retry(method, url, headers, body, opts, {:attempts, attempts}) do
start_metadata = %{url: url, method: method, attempts: attempts}
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 50ff9fc

Please sign in to comment.