Class: MicroQ::Middleware::Client::Statistics

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/micro_q/middleware/client/statistics.rb

Constant Summary collapse

ENQUEUED =
proc {|klass| klass ? "messages:#{klass}:enqueued" : 'messages:enqueued' }

Instance Method Summary collapse

Methods included from Util

#statistics, #stats_incr

Instance Method Details

#call(message, options) ⇒ Object



9
10
11
12
# File 'lib/micro_q/middleware/client/statistics.rb', line 9

def call(message, options)
  stats(message)
  yield
end