Skip to content

Commit

Permalink
Update metrics/prometheus/metric_set.go
Browse files Browse the repository at this point in the history
Co-authored-by: finalt <finalt1361@163.com>
  • Loading branch information
ev1lQuark and FinalT authored Apr 27, 2023
1 parent 8101ffa commit 322a9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/prometheus/metric_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ func buildMetricsName(args ...string) string {
sb.WriteString("_")
sb.WriteString(arg)
}
res, _ := strings.CutPrefix(sb.String(), "_")
res := strings.TrimPrefix(sb.String(), "_")
return res
}

0 comments on commit 322a9cd

Please sign in to comment.