Skip to content

Commit

Permalink
use %q
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Dec 17, 2024
1 parent 2a2feff commit f90033d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/debugexporter/internal/normal/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ")
Expand Down

0 comments on commit f90033d

Please sign in to comment.