Class: Eventboss::Sentry::ErrorHandler
- Inherits:
-
Object
- Object
- Eventboss::Sentry::ErrorHandler
- Defined in:
- lib/eventboss/sentry/error_handler.rb
Instance Method Summary collapse
Instance Method Details
#call(exception, _context = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/eventboss/sentry/error_handler.rb', line 4 def call(exception, _context = {}) return unless ::Sentry.initialized? Eventboss::Sentry::Integration.capture_exception( exception, contexts: { eventboss: { } }, hint: { background: false } ) end |