From 50ff9fc684e1f8f8ff0e21749a58d9882896e3ab Mon Sep 17 00:00:00 2001 From: Alex Loukissas Date: Thu, 8 Aug 2024 20:24:49 +0300 Subject: [PATCH] feat: include headers in telemetry metadata (#851) --- lib/stripe/api.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe/api.ex b/lib/stripe/api.ex index 864f367a..0390e434 100644 --- a/lib/stripe/api.ex +++ b/lib/stripe/api.ex @@ -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 ->