mirror of
https://github.com/0xERR0R/blocky.git
synced 2026-10-12 02:01:13 +00:00
* Use package local metrics Improve performance of metrics by moving them to the package that needs them. This reduces the overhead to a simple atomic increment for basic counters like cache hits/misses. This also uses `promauto` to avoid the second step of having to register metrics. Signed-off-by: SuperQ <[email protected]> * Export metrics registry Export the custom metrics registry from the metrics package so it can be used with promauto in other packages. Signed-off-by: SuperQ <[email protected]> --------- Signed-off-by: SuperQ <[email protected]>