Skip to content

Commit

Permalink
feat(filter): improve perfomance or restoreMetricStringByNameAndLabels (
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf authored Jun 24, 2024
1 parent fb93d68 commit 08fd9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/metrics_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func restoreMetricStringByNameAndLabels(name string, labels map[string]string) s
builder.WriteString(name)

for _, key := range keys {
builder.WriteString(fmt.Sprintf(";%s=%s", key, labels[key]))
builder.WriteString(";" + key + "=" + labels[key])
}

return builder.String()
Expand Down

0 comments on commit 08fd9a8

Please sign in to comment.