Skip to content

Commit

Permalink
Fix cacheSetsMetric
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslopezf committed Apr 19, 2024
1 parent 442f07c commit 3fdbf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/zrouter/zmiddlewares/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func cacheResponseIfNeeded(rw *responseWriter, r *http.Request, cache zcache.ZCa
return
}

if err := metricServer.IncrementMetric(cacheSetsMetric, GetRoutePattern(r)); err != nil {
if err := metricServer.IncrementMetric(cacheSetsMetric, GetSubRoutePattern(r), GetRoutePattern(r)); err != nil {
logger.GetLoggerFromContext(r.Context()).Errorf("Error incrementing cache_sets metric: %v", err)
}
}
Expand Down

0 comments on commit 3fdbf11

Please sign in to comment.