lib/harness/integration/sidekiq.rb in harness-0.2.12 vs lib/harness/integration/sidekiq.rb in harness-0.2.13

- old
+ new

@@ -21,10 +21,16 @@ end end private def instrument?(worker_class) - worker_class.to_s !~ /^harness/i + if worker_class.is_a? Harness::SidekiqQueue::SendCounter + false + elsif worker_class.is_a? Harness::SidekiqQueue::SendGauge + false + else + worker_class.to_s !~ /^harness/i + end end def logger Sidekiq.logger end