Module: ElasticAPM::Spies::RedisSpy::Ext Private
- Defined in:
- lib/elastic_apm/spies/redis.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(command, &block) ⇒ Object private
Instance Method Details
#call(command, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 35 |
# File 'lib/elastic_apm/spies/redis.rb', line 27 def call(command, &block) name = command[0].to_s.upcase return super(command, &block) if command[0] == :auth ElasticAPM.with_span(name.to_s, 'db.redis') do super(command, &block) end end |