From 9abffd056ea3f1ee55a306ceb627a0c32c713a86 Mon Sep 17 00:00:00 2001 From: andrej Date: Tue, 3 Mar 2026 00:35:16 +0100 Subject: [PATCH] Update metrics/metrics.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- metrics/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 45115df..7df70b8 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -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 }