Sha256: a2a5583cadeeabac6c541edd7c19270e36b59a1fd09bfe08f37281883ba2e389
Contents?: true
Size: 549 Bytes
Versions: 20
Compression:
Stored size: 549 Bytes
Contents
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2021 module Instana module Activators class SidekiqWorker < Activator def can_instrument? defined?(::Sidekiq) && ::Instana.config[:'sidekiq-worker'][:enabled] end def instrument require 'instana/instrumentation/sidekiq-worker' ::Sidekiq.configure_server do |cfg| cfg.server_middleware do |chain| chain.add ::Instana::Instrumentation::SidekiqWorker end end true end end end end
Version data entries
20 entries across 20 versions & 1 rubygems