Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Fix source for instrument_action slow events
Browse files Browse the repository at this point in the history
  • Loading branch information
nextmat committed Jul 3, 2014
1 parent 5193977 commit acb1cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librato/rails/subscribers/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def self.watch_controller_action(controller, action)
collector.group 'rails.action.request' do |r|

r.increment 'total', source: source
r.increment 'slow' if event.duration > 200.0
r.increment 'slow', source: source if event.duration > 200.0
r.timing 'time', event.duration, source: source

if exception
Expand Down

0 comments on commit acb1cf7

Please sign in to comment.