Skip to content

Commit 9c9317b

Browse files
committed
fix deprecated call
1 parent b62cad8 commit 9c9317b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pipeline/write/write_loki.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func NewWriteLoki(opMetrics *operational.Metrics, params config.StageParam) (*Lo
237237
saneLabels := make(map[string]model.LabelName, len(lokiConfigIn.Labels))
238238
for _, label := range lokiConfigIn.Labels {
239239
sanitized := model.LabelName(keyReplacer.Replace(label))
240-
if sanitized.IsValidLegacy() {
240+
if model.LegacyValidation.IsValidLabelName(string(sanitized)) {
241241
saneLabels[label] = sanitized
242242
} else {
243243
log.WithFields(logrus.Fields{"key": label, "sanitized": sanitized}).

0 commit comments

Comments
 (0)