fork of indigo with slightly nicer lexgen

fix did memcached metrics

authored by Brian Olson and committed by Brian Olson 9bb22ba9 4b2f8dc7

Changed files
+12 -2
plc
+2 -2
plc/memcached.go
··· 74 74 doc, ok := r.tryCache(didstr) 75 75 if ok { 76 76 span.SetAttributes(attribute.Bool("cache", true)) 77 - cacheHitsTotal.Inc() 77 + memcacheHitsTotal.Inc() 78 78 return doc, nil 79 79 } 80 - cacheMissesTotal.Inc() 80 + memcacheMissesTotal.Inc() 81 81 span.SetAttributes(attribute.Bool("cache", false)) 82 82 83 83 doc, err := r.res.GetDocument(ctx, didstr)
+10
plc/metrics.go
··· 14 14 Name: "plc_cache_misses_total", 15 15 Help: "Total number of cache misses", 16 16 }) 17 + 18 + var memcacheHitsTotal = promauto.NewCounter(prometheus.CounterOpts{ 19 + Name: "plc_memcache_hits_total", 20 + Help: "Total number of cache hits", 21 + }) 22 + 23 + var memcacheMissesTotal = promauto.NewCounter(prometheus.CounterOpts{ 24 + Name: "plc_memcache_misses_total", 25 + Help: "Total number of cache misses", 26 + })