We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2303ce2 commit 51c5ca6Copy full SHA for 51c5ca6
internal/background/worker.go
@@ -5,6 +5,7 @@ import (
5
"errors"
6
"fmt"
7
"runtime/pprof"
8
+ "strings"
9
"sync"
10
11
"github.com/ydb-platform/ydb-go-sdk/v3/internal/empty"
@@ -144,7 +145,9 @@ func (b *Worker) starterLoop(ctx context.Context) {
144
145
go func(task backgroundTask) {
146
defer b.workers.Done()
147
- pprof.Do(ctx, pprof.Labels("background", task.name), task.callback)
148
+ safeLabel := strings.Replace(task.name, `"`, `'`, -1)
149
+
150
+ pprof.Do(ctx, pprof.Labels("background", safeLabel), task.callback)
151
}(bgTask)
152
}
153
0 commit comments