Class: Raven::Sidekiq::ErrorHandler
- Defined in:
- lib/raven/integrations/sidekiq/error_handler.rb
Constant Summary collapse
- SIDEKIQ_NAME =
"Sidekiq".freeze
Instance Method Summary collapse
Instance Method Details
#call(ex, context) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/raven/integrations/sidekiq/error_handler.rb', line 8 def call(ex, context) context = Utils::ContextFilter.filter_context(context) Raven.context.transaction.push transaction_from_context(context) Raven.capture_exception( ex, :message => ex., :extra => { :sidekiq => context } ) Context.clear! BreadcrumbBuffer.clear! end |