Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Clear stats on resque job
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Mar 29, 2010
1 parent 659d6ae commit c97b8bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rpm_contrib/instrumentation/resque.rb
Expand Up @@ -18,6 +18,7 @@ module ResqueInstrumentation
class_name = 'Resque::Job'
end
name = 'process'
NewRelic::Agent.reset_stats if NewRelic::Agent.respond_to? :reset_stats
perform_action_with_newrelic_trace(:name => name, :class_name => class_name,
:category => 'OtherTransaction/ResqueJob') do
old_process_method.bind(self).call(*args)
Expand Down

0 comments on commit c97b8bc

Please sign in to comment.