Skip to content

Commit a96bbfd

Browse files
authored
feat: Log sanitized label names (#4521)
Gives more visibility in to which label names are being written that are being rewritten.
1 parent 4350e47 commit a96bbfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/validation/validate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ func ValidateLabels(limits LabelValidationLimits, tenantID string, ls []*typesv1
162162
if err != nil {
163163
return err
164164
}
165+
level.Debug(util.Logger).Log(
166+
"msg", "label name sanitized",
167+
"origName", origName,
168+
"serviceName", serviceNameValue)
169+
165170
sanitizedLabelNames.WithLabelValues(tenantID).Inc()
166171
lastLabelName = ""
167172
if idx > 0 && idx <= len(ls) {

0 commit comments

Comments
 (0)