Module: MetrixWire::Instrument::Redis::Patch
- Defined in:
- lib/metrixwire/instrument/redis.rb
Instance Method Summary collapse
Instance Method Details
#call(command, *rest, &blk) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/metrixwire/instrument/redis.rb', line 37 def call(command, *rest, &blk) return super if Context.current.nil? op = MetrixWire::Instrument::Redis.command_name(command) t0 = MetrixWire.monotonic_ms result = super MetrixWire::Instrument::Redis.record(op, MetrixWire.monotonic_ms - t0, result) result rescue StandardError super end |