From 5fc8f19becb4a88c2bc9ee6434720d4184aac03f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 6 Aug 2025 20:34:56 +1000 Subject: [PATCH] Clear pprof labels in spawned webseed requests --- webseed/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webseed/client.go b/webseed/client.go index 10c8fcdf..ec2040d2 100644 --- a/webseed/client.go +++ b/webseed/client.go @@ -9,6 +9,7 @@ import ( "log/slog" "net/http" "os" + "runtime/pprof" "strings" "sync" @@ -156,6 +157,7 @@ func (ws *Client) StartNewRequest(ctx context.Context, r RequestSpec, debugLogge bodyPipe: body, } go func() { + pprof.SetGoroutineLabels(context.Background()) err := ws.readRequestPartResponses(ctx, w, requestParts) panicif.Err(w.CloseWithError(err)) }() -- 2.51.0