Module: TestProf::EventProf::CustomEvents::SidekiqJobs
- Defined in:
- lib/test_prof/event_prof/custom_events/sidekiq_jobs.rb
Overview
:nodoc: all
Defined Under Namespace
Modules: ClientPatch
Class Method Summary collapse
Class Method Details
.setup! ⇒ Object
17 18 19 |
# File 'lib/test_prof/event_prof/custom_events/sidekiq_jobs.rb', line 17 def setup! Sidekiq::Client.prepend ClientPatch end |
.track ⇒ Object
21 22 23 24 25 |
# File 'lib/test_prof/event_prof/custom_events/sidekiq_jobs.rb', line 21 def track ActiveSupport::Notifications.instrument( 'sidekiq.jobs' ) { yield } end |