metrics fix: edit mutate key to replace - with _ (#1217)

This commit is contained in:
nathanhopp 2022-11-30 19:13:50 -07:00 committed by GitHub
parent d3873f4ccf
commit b6b274eba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,5 +126,7 @@ func (c *collector) writeSummaryPercentile(name, p string, value interface{}) {
}
func mutateKey(key string) string {
return strings.Replace(key, "/", "_", -1)
key = strings.Replace(key, "/", "_", -1)
key = strings.Replace(key, "-", "_", -1)
return key
}