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
Job names are automatically detected based on the Sidekiq worker class name and are suffixed with the
perform method name, resulting in something like:
If your app is using the Sidekiq delayed extensions, please upgrade to AppSignal Ruby gem version
2.4.1 or higher as support for this extension was improved.
You can recognize events from Sidekiq with the name
perform_job.sidekiq in the event timeline on the performance incident detail page.
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 required.
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