Sha256: 7a2117d20f1a83eb7a9875461cdfc79a73aa997faceae567b27d1deedfde0a52

Contents?: true

Size: 465 Bytes

Versions: 38

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module RedisClientIntegration
      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", @config.id, sanitized_command do
          super
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-3.7.0-java lib/appsignal/integrations/redis_client.rb
appsignal-3.7.0 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.5-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.5 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.4-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.4 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.3-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.3 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.2-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.2 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.1-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.1 lib/appsignal/integrations/redis_client.rb
appsignal-3.6.0-java lib/appsignal/integrations/redis_client.rb
appsignal-3.6.0 lib/appsignal/integrations/redis_client.rb
appsignal-3.5.6-java lib/appsignal/integrations/redis_client.rb
appsignal-3.5.6 lib/appsignal/integrations/redis_client.rb
appsignal-3.5.5-java lib/appsignal/integrations/redis_client.rb
appsignal-3.5.5 lib/appsignal/integrations/redis_client.rb