Sha256: a02a01c6e8ce16a4941c8d471bde677a1a1cfb84a4ae36b353cd6feb65261d2d

Contents?: true

Size: 451 Bytes

Versions: 172

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module RedisIntegration
      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
    end
  end
end

Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
appsignal-3.4.1-java lib/appsignal/integrations/redis.rb
appsignal-3.4.1 lib/appsignal/integrations/redis.rb
appsignal-3.4.0-java lib/appsignal/integrations/redis.rb
appsignal-3.4.0 lib/appsignal/integrations/redis.rb
appsignal-3.3.10-java lib/appsignal/integrations/redis.rb
appsignal-3.3.10 lib/appsignal/integrations/redis.rb
appsignal-3.3.9-java lib/appsignal/integrations/redis.rb
appsignal-3.3.9 lib/appsignal/integrations/redis.rb
appsignal-3.3.8-java lib/appsignal/integrations/redis.rb
appsignal-3.3.8 lib/appsignal/integrations/redis.rb
appsignal-3.3.7-java lib/appsignal/integrations/redis.rb
appsignal-3.3.7 lib/appsignal/integrations/redis.rb
appsignal-3.3.6-java lib/appsignal/integrations/redis.rb
appsignal-3.3.6 lib/appsignal/integrations/redis.rb
appsignal-3.3.5-java lib/appsignal/integrations/redis.rb
appsignal-3.3.5 lib/appsignal/integrations/redis.rb
appsignal-3.3.4-java lib/appsignal/integrations/redis.rb
appsignal-3.3.4 lib/appsignal/integrations/redis.rb
appsignal-3.3.3-java lib/appsignal/integrations/redis.rb
appsignal-3.3.3 lib/appsignal/integrations/redis.rb