[#1608] policer: Add IO tag to context

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-01-29 17:45:40 +03:00
parent acec938b2d
commit bfe325e61d
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0

View file

@ -7,7 +7,9 @@ import (
"time"
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/qos"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine"
"git.frostfs.info/TrueCloudLab/frostfs-qos/tagging"
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
"go.uber.org/zap"
)
@ -18,6 +20,7 @@ func (p *Policer) Run(ctx context.Context) {
}
func (p *Policer) shardPolicyWorker(ctx context.Context) {
ctx = tagging.ContextWithIOTag(ctx, qos.IOTagPolicer.String())
for {
select {
case <-ctx.Done():