Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Join redis command by _

  • Loading branch information...
commit 201bb404830f6db3737382b99f02ef156ce50440 1 parent d22eaa9
@logankoester logankoester authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.