Skip to content

Instantly share code, notes, and snippets.

@joshuap
Created December 28, 2012 18:28
Show Gist options
  • Save joshuap/4400569 to your computer and use it in GitHub Desktop.
Save joshuap/4400569 to your computer and use it in GitHub Desktop.
Using Honeybadger with Sidekiq
# config/initializers/honeybadger.rb
Honeybadger.configure do |config|
...
config.async do |notice|
WorkingBadger.perform_async(notice.to_json)
end
end
# 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