From 99086b40a119bd295c5dc80121f5bcbb3cecd427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Wed, 22 May 2024 10:26:19 +0100 Subject: [PATCH] add traceparent to raw http response debug logs --- internal/pkg/print/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/print/debug.go b/internal/pkg/print/debug.go index 59352682e..d0927d8df 100644 --- a/internal/pkg/print/debug.go +++ b/internal/pkg/print/debug.go @@ -13,7 +13,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/config" ) -var defaultHTTPHeaders = []string{"Accept", "Content-Type", "Content-Length", "User-Agent", "Date", "Referrer-Policy"} +var defaultHTTPHeaders = []string{"Accept", "Content-Type", "Content-Length", "User-Agent", "Date", "Referrer-Policy", "Traceparent"} // BuildDebugStrFromInputModel converts an input model to a user-friendly string representation. // This function converts the input model to a map, removes empty values, and generates a string representation of the map.