Sidekiq is a simple and efficient background processor for Ruby. It's also the processor we use to process jobs in AppSignal.
Support for Sidekiq was added in AppSignal Ruby gem version
The AppSignal Ruby gem automatically inserts a listener into the Sidekiq server
middleware stack if the
Sidekiq module is present if you use Rails. No further action is
If you use Sidekiq without Rails some additional setup is required. Add this snippet to your Sidekiq config with the right environment and name:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
require 'appsignal' Sidekiq.on(:startup) do # Load config Appsignal.config = Appsignal::Config.new( Dir.pwd, ENV['APPSIGNAL_APP_ENV'], # Set environment here :name => 'Sidekiq standalone', # Set app name here ) # Start Appsignal Appsignal.start # Initialize the logger Appsignal.start_logger end Sidekiq.on(:shutdown) do # Stop the agent Appsignal.stop('Sidekiq shutdown') end