No commit activity in last 3 years
No release in over 3 years
Provides a Resque failure backend that sends exceptions raised by jobs to the Honeybadger service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.8.0
 Project Readme

resque-honeybadger

DEPRECATED: 1.x only. Resque support is included as of the honeybadger gem version 2.0.0.


resque-honeybadger provides a Resque failure backend that sends exceptions raised by jobs to honeybadger.io.

Install & Quick Start

Before you jump into code, you'll need a honeybadger.io account.

Add this line to your application's Gemfile:

gem 'resque-honeybadger'

And then execute:

$ bundle

Or install it yourself as:

$ gem install resque-honeybadger

Example

Using only the honeybadger failure backend:

# Suggested file in Rails: config/initializers/resque.rb

require 'resque'
require 'resque-honeybadger'

# If you don't already do `Honeybadger.configure` elsewhere.
Resque::Failure::Honeybadger.configure do |config|
  config.api_key = 'abc123'  # Your key here.
end

Resque::Failure.backend = Resque::Failure::Honeybadger

Using both the redis and honeybadger failure backends:

require 'resque'
require 'resque-honeybadger'

require 'resque/failure/multiple'
require 'resque/failure/redis'

# If you don't already do `Honeybadger.configure` elsewhere.
Resque::Failure::Honeybadger.configure do |config|
  config.api_key = 'abc123'  # Your key here.
end

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Honeybadger]
Resque::Failure.backend = Resque::Failure::Multiple

Forked by

Henrik Nyh :: http://henrik.nyh.se :: @henrik

Jacques Crocker :: http://railsjedi.com :: @railsjedi

Original Author

Luke Antins :: http://lividpenguin.com :: @lantins