Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4cba944467
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.688 kb
module Resque
module Plugins
module Statsd
def after_enqueue_statsd(*args)
$resque_statsd.increment("#{@queue}.enqueued")
$resque_statsd.increment("total.enqueued")
end
def after_perform_statsd(*args)
$resque_statsd.increment("#{@queue}.finished")
$resque_statsd.increment("total.finished")
end
def on_failure_statsd(*args)
$resque_statsd.increment("#{@queue}.failed")
$resque_statsd.increment("total.failed")
end
def around_perform_statsd(*args)
$resque_statsd.time("#{@queue}.processed") do
yield
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.