Skip to content

Commit f90033d

Browse files
committed
use %q
1 parent 2a2feff commit f90033d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/debugexporter/internal/normal/profiles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (normalProfilesMarshaler) MarshalProfiles(pd pprofile.Profiles) ([]byte, er
4040
attrs := []string{}
4141
for _, i := range profile.AttributeIndices().AsRaw() {
4242
a := profile.AttributeTable().At(int(i))
43-
attrs = append(attrs, fmt.Sprintf("%s=%s", a.Key(), a.Value().AsString()))
43+
attrs = append(attrs, fmt.Sprintf("%s=%q", a.Key(), a.Value().AsString()))
4444
}
4545

4646
buffer.WriteString(" ")

0 commit comments

Comments
 (0)