DEV: logging db is overkill

DEV: logging db is overkill

this will cause an explosion of metrics on multisite and is not really needed

diff --git a/lib/collector.rb b/lib/collector.rb
index 604ca24..ade6f73 100644
--- a/lib/collector.rb
+++ b/lib/collector.rb
@@ -238,16 +238,16 @@ module ::DiscoursePrometheus
       @http_queue_duration_seconds.observe(metric.queue_duration, labels)
       @http_sql_calls_per_request.observe(metric.sql_calls, labels.merge(logged_in: metric.logged_in))
 
-      db = metric.db || "default"
-
       if cache = metric.cache
         if cache == "store"
-          @http_anon_cache_store.observe(1, labels.merge(db: db))
+          @http_anon_cache_store.observe(1, labels)
         elsif cache == "true"
-          @http_anon_cache_hit.observe(1, labels.merge(db: db))
+          @http_anon_cache_hit.observe(1, labels)
         end
       end
 
+      db = metric.db || "default"
+
       if metric.tracked
         hash = { db: db }

GitHub sha: 035312fa