Module: Marginalia::SidekiqInstrumentation

Defined in:
lib/marginalia/sidekiq_instrumentation.rb

Overview

Alternative to ActiveJob Instrumentation for Sidekiq.

Defined Under Namespace

Classes: Middleware

Class Method Summary collapse

Class Method Details

.enable!Object



15
16
17
18
19
20
21
# File 'lib/marginalia/sidekiq_instrumentation.rb', line 15

def self.enable!
  Sidekiq.configure_server do |config|
    config.server_middleware do |chain|
      chain.add Marginalia::SidekiqInstrumentation::Middleware
    end
  end
end