Created
December 28, 2012 18:28
-
-
Save joshuap/4400569 to your computer and use it in GitHub Desktop.
Using Honeybadger with Sidekiq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/honeybadger.rb | |
Honeybadger.configure do |config| | |
... | |
config.async do |notice| | |
WorkingBadger.perform_async(notice.to_json) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/workers/working_badger.rb | |
class WorkingBadger | |
include Sidekiq::Worker | |
def perform(notice) | |
Honeybadger.sender.send_to_honeybadger(notice) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment