Sha256: 9f611d93ed06bb1beafd35ec49e6c58efd570a58143f2473cdec131a0de12a1d

Contents?: true

Size: 593 Bytes

Versions: 39

Compression:

Stored size: 593 Bytes

Contents

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

module Instana
  module Activators
    class SidekiqClient < Activator
      def can_instrument?
        defined?(::Sidekiq) && ::Sidekiq.respond_to?(:configure_client) && ::Instana.config[:'sidekiq-client'][:enabled]
      end

      def instrument
        require 'instana/instrumentation/sidekiq-client'

        ::Sidekiq.configure_client do |cfg|
          cfg.client_middleware do |chain|
            chain.add ::Instana::Instrumentation::SidekiqClient
          end
        end

        true
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
instana-1.209.1 lib/instana/activators/sidekiq_client.rb
instana-1.209.0.pre3 lib/instana/activators/sidekiq_client.rb
instana-1.209.0.pre2 lib/instana/activators/sidekiq_client.rb
instana-1.209.0.pre1 lib/instana/activators/sidekiq_client.rb
instana-1.208.0 lib/instana/activators/sidekiq_client.rb
instana-1.207.0 lib/instana/activators/sidekiq_client.rb
instana-1.206.0 lib/instana/activators/sidekiq_client.rb
instana-1.205.0 lib/instana/activators/sidekiq_client.rb
instana-1.204.0 lib/instana/activators/sidekiq_client.rb
instana-1.204.0.pre3 lib/instana/activators/sidekiq_client.rb
instana-1.204.0.pre2 lib/instana/activators/sidekiq_client.rb
instana-1.204.0.pre1 lib/instana/activators/sidekiq_client.rb
instana-1.203.2 lib/instana/activators/sidekiq_client.rb
instana-1.203.1 lib/instana/activators/sidekiq_client.rb
instana-1.203.0 lib/instana/activators/sidekiq_client.rb
instana-1.202.0 lib/instana/activators/sidekiq_client.rb
instana-1.201.0 lib/instana/activators/sidekiq_client.rb
instana-1.201.0.pre1 lib/instana/activators/sidekiq_client.rb
instana-1.200.0 lib/instana/activators/sidekiq_client.rb