Class: RooOnRails::Sidekiq::MetricsWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/roo_on_rails/sidekiq/metrics_worker.rb

Instance Method Summary collapse

Instance Method Details

#performObject



19
20
21
22
23
24
25
# File 'lib/roo_on_rails/sidekiq/metrics_worker.rb', line 19

def perform
  RooOnRails.statsd.batch do |stats|
    queues = QueueLatency.queues
    queue_stats(stats, queues)
    process_stats(stats, queues)
  end
end