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.10.0-java lib/appsignal/integrations/redis.rb
appsignal-3.10.0 lib/appsignal/integrations/redis.rb
appsignal-3.9.3-java lib/appsignal/integrations/redis.rb
appsignal-3.9.3 lib/appsignal/integrations/redis.rb
appsignal-3.9.2-java lib/appsignal/integrations/redis.rb
appsignal-3.9.2 lib/appsignal/integrations/redis.rb
appsignal-3.9.1-java lib/appsignal/integrations/redis.rb
appsignal-3.9.1 lib/appsignal/integrations/redis.rb
appsignal-3.9.0-java lib/appsignal/integrations/redis.rb
appsignal-3.9.0 lib/appsignal/integrations/redis.rb
appsignal-3.8.1-java lib/appsignal/integrations/redis.rb
appsignal-3.8.1 lib/appsignal/integrations/redis.rb
appsignal-3.8.0-java lib/appsignal/integrations/redis.rb
appsignal-3.8.0 lib/appsignal/integrations/redis.rb
appsignal-3.7.6-java lib/appsignal/integrations/redis.rb
appsignal-3.7.6 lib/appsignal/integrations/redis.rb
appsignal-3.7.2-java lib/appsignal/integrations/redis.rb
appsignal-3.7.2 lib/appsignal/integrations/redis.rb
appsignal-3.7.1-java lib/appsignal/integrations/redis.rb
appsignal-3.7.1 lib/appsignal/integrations/redis.rb