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?.
Written by Giovanni Cappellotto
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Error handling
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#