MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / makeCacheLabels

Function makeCacheLabels

proxy.go:531–540  ·  view source on GitHub ↗
(s *scope)

Source from the content-addressed store, hash-verified

529}
530
531func makeCacheLabels(s *scope) prometheus.Labels {
532 // Do not store `replica` and `cluster_node` in labels, since they have
533 // no sense for cache metrics.
534 return prometheus.Labels{
535 "cache": s.user.cache.Name(),
536 "user": s.labels["user"],
537 "cluster": s.labels["cluster"],
538 "cluster_user": s.labels["cluster_user"],
539 }
540}
541
542func newCacheKey(s *scope, origParams url.Values, q []byte, req *http.Request) *cache.Key {
543 var userParamsHash uint32

Callers 1

serveFromCacheMethod · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected