Sha256: 873e55650a1cd51923ef04bb30e1059807a4febe94e439fccd7a2f0b3e464bce

Contents?: true

Size: 520 Bytes

Versions: 42

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class RedisHook < Appsignal::Hooks::Hook
      register :redis

      def dependencies_present?
        defined?(::Redis) &&
          Appsignal.config &&
          Appsignal.config[:instrument_redis]
      end

      def install
        require "appsignal/integrations/redis"
        ::Redis::Client.prepend Appsignal::Integrations::RedisIntegration

        Appsignal::Environment.report_enabled("redis")
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
appsignal-3.4.11-java lib/appsignal/hooks/redis.rb
appsignal-3.4.11 lib/appsignal/hooks/redis.rb
appsignal-3.4.10-java lib/appsignal/hooks/redis.rb
appsignal-3.4.10 lib/appsignal/hooks/redis.rb
appsignal-3.4.9-java lib/appsignal/hooks/redis.rb
appsignal-3.4.9 lib/appsignal/hooks/redis.rb
appsignal-3.4.8-java lib/appsignal/hooks/redis.rb
appsignal-3.4.8 lib/appsignal/hooks/redis.rb
appsignal-3.4.7-java lib/appsignal/hooks/redis.rb
appsignal-3.4.7 lib/appsignal/hooks/redis.rb
appsignal-3.4.6-java lib/appsignal/hooks/redis.rb
appsignal-3.4.6 lib/appsignal/hooks/redis.rb
appsignal-3.4.5-java lib/appsignal/hooks/redis.rb
appsignal-3.4.5 lib/appsignal/hooks/redis.rb
appsignal-3.4.4-java lib/appsignal/hooks/redis.rb
appsignal-3.4.4 lib/appsignal/hooks/redis.rb
appsignal-3.4.3-java lib/appsignal/hooks/redis.rb
appsignal-3.4.3 lib/appsignal/hooks/redis.rb
appsignal-3.4.2-java lib/appsignal/hooks/redis.rb
appsignal-3.4.2 lib/appsignal/hooks/redis.rb