From 21b9ea531508d5775c26d54b51acd4fb94576952 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 4 Dec 2025 21:29:10 -0800 Subject: [PATCH] http: inject request ID for observability in direct read path Add request_id.InjectToRequest() call to readUrlDirectToBuffer() for consistency with ReadUrlAsStream path. This ensures full-chunk reads carry the same tracing/correlation headers for server logs and metrics. --- weed/util/http/http_global_client_util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/util/http/http_global_client_util.go b/weed/util/http/http_global_client_util.go index 9fa2c6e40..a374c8a2b 100644 --- a/weed/util/http/http_global_client_util.go +++ b/weed/util/http/http_global_client_util.go @@ -613,6 +613,7 @@ func readUrlDirectToBuffer(ctx context.Context, fileUrl, jwt string, buffer []by return 0, false, err } maybeAddAuth(req, jwt) + request_id.InjectToRequest(ctx, req) r, err := GetGlobalHttpClient().Do(req) if err != nil {