Sha256: 6a73130c299e23ce8e84d4265aa2e621f2800dcba00add666a51398b09d11c2a

Contents?: true

Size: 438 Bytes

Versions: 64

Compression:

Stored size: 438 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class ResqueClient < Activator
      def can_instrument?
        defined?(::Resque) &&
          ::Instana.config[:'resque-client'][:enabled]
      end

      def instrument
        require 'instana/instrumentation/resque'

        ::Resque.prepend(::Instana::Instrumentation::ResqueClient)

        true
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.209.6 lib/instana/activators/resque_client.rb
instana-1.209.5 lib/instana/activators/resque_client.rb
instana-1.209.4 lib/instana/activators/resque_client.rb
instana-1.209.3 lib/instana/activators/resque_client.rb
instana-1.209.2 lib/instana/activators/resque_client.rb
instana-1.209.1 lib/instana/activators/resque_client.rb
instana-1.209.0.pre3 lib/instana/activators/resque_client.rb
instana-1.209.0.pre2 lib/instana/activators/resque_client.rb
instana-1.209.0.pre1 lib/instana/activators/resque_client.rb
instana-1.208.0 lib/instana/activators/resque_client.rb
instana-1.207.0 lib/instana/activators/resque_client.rb
instana-1.206.0 lib/instana/activators/resque_client.rb
instana-1.205.0 lib/instana/activators/resque_client.rb
instana-1.204.0 lib/instana/activators/resque_client.rb
instana-1.204.0.pre3 lib/instana/activators/resque_client.rb
instana-1.204.0.pre2 lib/instana/activators/resque_client.rb
instana-1.204.0.pre1 lib/instana/activators/resque_client.rb
instana-1.203.2 lib/instana/activators/resque_client.rb
instana-1.203.1 lib/instana/activators/resque_client.rb
instana-1.203.0 lib/instana/activators/resque_client.rb