From f90033de7dd234148ed30c2d213f64c488c27d67 Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Tue, 17 Dec 2024 11:48:37 +0100 Subject: [PATCH] use %q --- exporter/debugexporter/internal/normal/profiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/debugexporter/internal/normal/profiles.go b/exporter/debugexporter/internal/normal/profiles.go index b87eb76d1f8..d695d2b733a 100644 --- a/exporter/debugexporter/internal/normal/profiles.go +++ b/exporter/debugexporter/internal/normal/profiles.go @@ -40,7 +40,7 @@ func (normalProfilesMarshaler) MarshalProfiles(pd pprofile.Profiles) ([]byte, er attrs := []string{} for _, i := range profile.AttributeIndices().AsRaw() { a := profile.AttributeTable().At(int(i)) - attrs = append(attrs, fmt.Sprintf("%s=%s", a.Key(), a.Value().AsString())) + attrs = append(attrs, fmt.Sprintf("%s=%q", a.Key(), a.Value().AsString())) } buffer.WriteString(" ")