Sha256: 69276f2991056dc8ca8edf266762ae617ff9d1fb5df4d72019a73bf767af9d21

Contents?: true

Size: 388 Bytes

Versions: 18

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module RedisIntegration
      def process(commands, &block)
        sanitized_commands = commands.map do |command, *args|
          "#{command}#{" ?" * args.size}"
        end.join("\n")

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appsignal-3.0.5-java lib/appsignal/integrations/redis.rb
appsignal-3.0.5 lib/appsignal/integrations/redis.rb
appsignal-3.0.4-java lib/appsignal/integrations/redis.rb
appsignal-3.0.4 lib/appsignal/integrations/redis.rb
appsignal-3.0.4.alpha.1-java lib/appsignal/integrations/redis.rb
appsignal-3.0.4.alpha.1 lib/appsignal/integrations/redis.rb
appsignal-3.0.3-java lib/appsignal/integrations/redis.rb
appsignal-3.0.3 lib/appsignal/integrations/redis.rb
appsignal-3.0.2-java lib/appsignal/integrations/redis.rb
appsignal-3.0.2 lib/appsignal/integrations/redis.rb
appsignal-3.0.1-java lib/appsignal/integrations/redis.rb
appsignal-3.0.1 lib/appsignal/integrations/redis.rb
appsignal-3.0.0-java lib/appsignal/integrations/redis.rb
appsignal-3.0.0 lib/appsignal/integrations/redis.rb
appsignal-3.0.0.rc.1 lib/appsignal/integrations/redis.rb
appsignal-3.0.0.rc.1-java lib/appsignal/integrations/redis.rb
appsignal-3.0.0.beta.1 lib/appsignal/integrations/redis.rb
appsignal-3.0.0.beta.1-java lib/appsignal/integrations/redis.rb