Skip to content

Commit cdd4c8b

Browse files
committed
Suppress staticcheck warning for Prometheus model.LabelName usage
1 parent f4ee154 commit cdd4c8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/normalizer/normalizer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ func NormalizeWriteRawRequest(ctx context.Context, req *profilestorepb.WriteRawR
512512
continue
513513
}
514514

515+
//nolint:staticcheck // SA1019: Update when we actually use the latest Prometheus
515516
if valid := model.LabelName(l.Name).IsValid(); !valid {
516517
return NormalizedWriteRawRequest{}, status.Errorf(codes.InvalidArgument, "invalid label name: %v", l.Name)
517518
}

0 commit comments

Comments
 (0)