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.7.0-java lib/appsignal/integrations/redis.rb
appsignal-3.7.0 lib/appsignal/integrations/redis.rb
appsignal-3.6.5-java lib/appsignal/integrations/redis.rb
appsignal-3.6.5 lib/appsignal/integrations/redis.rb
appsignal-3.6.4-java lib/appsignal/integrations/redis.rb
appsignal-3.6.4 lib/appsignal/integrations/redis.rb
appsignal-3.6.3-java lib/appsignal/integrations/redis.rb
appsignal-3.6.3 lib/appsignal/integrations/redis.rb
appsignal-3.6.2-java lib/appsignal/integrations/redis.rb
appsignal-3.6.2 lib/appsignal/integrations/redis.rb
appsignal-3.6.1-java lib/appsignal/integrations/redis.rb
appsignal-3.6.1 lib/appsignal/integrations/redis.rb
appsignal-3.6.0-java lib/appsignal/integrations/redis.rb
appsignal-3.6.0 lib/appsignal/integrations/redis.rb
appsignal-3.5.6-java lib/appsignal/integrations/redis.rb
appsignal-3.5.6 lib/appsignal/integrations/redis.rb
appsignal-3.5.5-java lib/appsignal/integrations/redis.rb
appsignal-3.5.5 lib/appsignal/integrations/redis.rb
appsignal-3.5.4-java lib/appsignal/integrations/redis.rb
appsignal-3.5.4 lib/appsignal/integrations/redis.rb