Skip to content
bnorton edited this page Feb 18, 2013 · 1 revision

Statistics are logged about each message and about many events that happen in the system.

####Default Log per-process statistics accessible from within that process.

##Configure

MicroQ.configure do |config|
  config.statistics = MicroQ::Statistics::Default
  # config.statistics = MicroQ::Statistics::Redis (coming soon)
end

##Usage

MicroQ.stats do |stats|
  stats.incr('messages:processed')

  # Or when a failure occurs
  stats.incr('messages:failed')
end

Clone this wiki locally