Module: Qless::Middleware::Sentry

Defined in:
lib/qless/middleware/sentry.rb

Overview

This middleware logs errors to the sentry exception notification service: getsentry.com/

Defined Under Namespace

Classes: SentryLogger

Instance Method Summary collapse

Instance Method Details

#around_perform(job) ⇒ Object



10
11
12
13
14
15
# File 'lib/qless/middleware/sentry.rb', line 10

def around_perform(job)
  super
rescue Exception => e
  SentryLogger.new(e, job).log
  raise
end