Permalink
Browse files

Join redis command by _

  • Loading branch information...
1 parent d22eaa9 commit 201bb404830f6db3737382b99f02ef156ce50440 @logankoester logankoester committed Aug 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/strumbar/instrumentation/redis.rb
View
3 lib/strumbar/instrumentation/redis.rb
@@ -6,7 +6,8 @@ def self.load
client.increment 'query.redis'
client.increment 'failure.redis' if event.payload[:failure]
- client.timing "#{event.payload[:command]}.redis", event.duration
+ command = event.payload[:command].join('_')
+ client.timing "#{command}.redis", event.duration
end
unless ::Redis::Client.instance_methods.include? :call_with_instrumentation

0 comments on commit 201bb40

Please sign in to comment.