You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
Darren Cheng edited this page Jun 14, 2018
·
7 revisions
Add below to some Rails initializer, example: config/initializers/shoryuken.rb
# Shoryuken middleware to capture worker errors and send them on to Sentry.iomoduleShoryukenmoduleMiddlewaremoduleServerclassRavenReporterdefcall(worker_instance,queue,sqs_msg,body)tags={job: body['job_class'],queue: queue}context={message: body}Raven.capture(tags: tags,extra: context)doyieldendendendendendendShoryuken.configure_serverdo |config|
config.server_middlewaredo |chain|
chain.addShoryuken::Middleware::Server::RavenReporterendend