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