Sha256: db2a5194c3b3eecae20b0cca69f1cb46d8a04b73ed61e5f4795362ff6e4e9d03
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'sidekiq' require 'raven/base' require './lib/sidekiq/squelch' require 'byebug' class CaughtError < StandardError; end class UncaughtError < StandardError; end class DerpyWorker include Sidekiq::Worker def perform(ex) raise CaughtError if ex == 'caught' raise UncaughtError end end Raven.configure do |config| config.dsn = 'https://7d3e06e5127f4f5e804584b7ab79c0b4:c19b1bb109e7470c9fe029fd6776e925@app.getsentry.com/31722' end handler = Sidekiq::Squelch::ErrorHandler.new Sidekiq::Squelch::Notifiers::Raven.new Sidekiq.configure_server do |config| config.error_handlers << handler end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-squelch-0.1.0 | example/sidekiq.rb |