Module: Appsignal::Integrations::RedisIntegration Private

Defined in:
lib/appsignal/integrations/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

Instance Method Details

#write(command) ⇒ 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.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/appsignal/integrations/redis.rb', line 7

def write(command)
  sanitized_command =
    if command[0] == :eval
      "#{command[1]}#{" ?" * (command.size - 3)}"
    else
      "#{command[0]}#{" ?" * (command.size - 1)}"
    end

  Appsignal.instrument "query.redis", id, sanitized_command do
    super
  end
end