Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 574 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 574 Bytes

resque-sentry

A Resque failure backend that sends errors to Sentry.

Installation

$ gem install resque-sentry

Usage

Add the following to an initializer:

require 'resque/failure/multiple'
require 'resque/failure/redis'
require 'resque-sentry'

# [optional] custom logger value to use when sending to Sentry (default is 'root')
Resque::Failure::Sentry.logger = "resque"

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