Puma Exception Handling

I’m trying to implement having 500 errors raised to Sentry for exception tracking, specifically using this documentation.

Ideally, I’d love to have this sent async through sidekiq, but simply getting it working is priority one.

I have the code exactly as above in my Rails app, and have a known issue in my app which causes a 500 error, but this exception never hits sentry. However, using the test rake command for Sentry to do a divide by zero error sends the exception as expected.