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.5.4-java lib/appsignal/hooks/redis.rb
appsignal-3.5.4 lib/appsignal/hooks/redis.rb
appsignal-3.5.3-java lib/appsignal/hooks/redis.rb
appsignal-3.5.3 lib/appsignal/hooks/redis.rb
appsignal-3.5.2-java lib/appsignal/hooks/redis.rb
appsignal-3.5.2 lib/appsignal/hooks/redis.rb
appsignal-3.5.1-java lib/appsignal/hooks/redis.rb
appsignal-3.5.1 lib/appsignal/hooks/redis.rb
appsignal-3.5.0-java lib/appsignal/hooks/redis.rb
appsignal-3.5.0 lib/appsignal/hooks/redis.rb
appsignal-3.4.16-java lib/appsignal/hooks/redis.rb
appsignal-3.4.16 lib/appsignal/hooks/redis.rb
appsignal-3.4.15-java lib/appsignal/hooks/redis.rb
appsignal-3.4.15 lib/appsignal/hooks/redis.rb
appsignal-3.4.14-java lib/appsignal/hooks/redis.rb
appsignal-3.4.14 lib/appsignal/hooks/redis.rb
appsignal-3.4.13-java lib/appsignal/hooks/redis.rb
appsignal-3.4.13 lib/appsignal/hooks/redis.rb
appsignal-3.4.12-java lib/appsignal/hooks/redis.rb
appsignal-3.4.12 lib/appsignal/hooks/redis.rb