From: Matt Joiner Date: Wed, 6 Aug 2025 10:34:56 +0000 (+1000) Subject: Clear pprof labels in spawned webseed requests X-Git-Tag: v1.59.0~2^2~39 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5fc8f19becb4a88c2bc9ee6434720d4184aac03f;p=btrtrc.git Clear pprof labels in spawned webseed requests --- 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)) }()