Update metrics/metrics.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-03 00:35:16 +01:00
committed by GitHub
parent cd7a1b4956
commit 9abffd056e

View File

@@ -763,8 +763,8 @@ func trimFloat(v float64) string {
func escapeLabelValue(value string) string {
value = strings.ReplaceAll(value, `\`, `\\`)
value = strings.ReplaceAll(value, "\n", `\\n`)
value = strings.ReplaceAll(value, `"`, `\\"`)
value = strings.ReplaceAll(value, "\n", `\n`)
value = strings.ReplaceAll(value, `"`, `\"`)
return value
}