diff --git a/pkg/mapper/mapper_cache.go b/pkg/mapper/mapper_cache.go index d498df6..9340bc8 100644 --- a/pkg/mapper/mapper_cache.go +++ b/pkg/mapper/mapper_cache.go @@ -14,8 +14,7 @@ package mapper import ( - "fmt" - "github.com/hashicorp/golang-lru" + lru "github.com/hashicorp/golang-lru" "github.com/prometheus/client_golang/prometheus" ) @@ -81,7 +80,7 @@ func (m *MetricMapperLRUCache) trackCacheLength() { } func formatKey(metricString string, metricType MetricType) string { - return fmt.Sprintf("%s.%s", string(metricType), metricString) + return string(metricType) + "." + metricString } func NewMetricMapperNoopCache() *MetricMapperNoopCache {