Skip to content

Commit 51c5ca6

Browse files
committed
remove quotas from background goroutine label
1 parent 2303ce2 commit 51c5ca6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/background/worker.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"errors"
66
"fmt"
77
"runtime/pprof"
8+
"strings"
89
"sync"
910

1011
"github.com/ydb-platform/ydb-go-sdk/v3/internal/empty"
@@ -144,7 +145,9 @@ func (b *Worker) starterLoop(ctx context.Context) {
144145
go func(task backgroundTask) {
145146
defer b.workers.Done()
146147

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)
148151
}(bgTask)
149152
}
150153
}

0 commit comments

Comments
 (0)