Skip to content

Commit

Permalink
metrics fix: edit mutate key to replace - with _
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhopp committed Nov 30, 2022
1 parent d3873f4 commit 19f9728
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metrics/prometheus/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 19f9728

Please sign in to comment.