简体   繁体   中英

Ruby on Rails sidekiq with airbrake setup

What are correct steps to setup sidekiq to work with airbrake on ruby on rails application.

already did:

  1. add gem 'airbrake' to gemfile
  2. add gem 'airbrake' to gemfile
  3. bundle install
  4. rails generate airbrake --my_api_key
  5. Create file sidekiq.rb with content:

Sidekiq.configure_server do |config| config.error_handlers << Proc.new { |ex,ctx_hash| Airbrake.notify_or_ignore(ex, ctx_hash) } end

What are the next steps to make it work?

需要'airbrake / sidekiq / error_handler'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM