lib/bm/instrumentations/internal/prometheus_registry_custom_collectors.rb
# Registers a custom collector that poll and update metrics periodically
#
# @param collector [Proc]
Registers a custom collector that poll and update metrics periodically
Registers a custom collector that poll and update metrics periodically
def add_custom_collector(&collector)
        @mutex.synchronize do
          @custom_collectors ||= []
          @custom_collectors << collector
        end
      end
def add_custom_collector ( & collector ) @mutex . synchronize do @custom_collectors ||= [ ] @custom_collectors << collector end end
Registers a custom collector that poll and update metrics periodically
Registers a custom collector that poll and update metrics periodically
collector
None