Last Updated: February 25, 2016
·
819
· potomak

Notify Sucker Punch background exceptions using Exception Notification

Sucker Punch is a Ruby asynchronous processing library using Celluloid, heavily influenced by Sidekiq and girl_friday.

The Exception Notification gem provides a set of notifiers for sending notifications when errors occur in a Rack/Rails application.

To notify Sucker Punch actors background exceptions add a new initializer config/sucker_punch_exception_notification.rb:

Celluloid.exception_handler { |ex| ExceptionNotifier.notify_exception(ex) }

See also Celluloid FAQ: How can I use a custom exception notifier like Airbrake?.