Skip to content

Rails/Rack recording exceptions twice #388

@mattrobenolt

Description

@mattrobenolt

Repository to test: https://github.com/mattrobenolt/sentry_test

When an exception occurs, we get two exceptions, one for the page itself, then one for the corresponding /500 route.

As noted by a user:

So it looks like that even new Rails app is affected. We think that it’s caused by catching exception in a raven rails integration first and then the second exception is caught by raven rack integration. It can be avoided by skipping rack integration entirely but we don’t want to do that. So I think that there should be some kind of mechanism to catch the exception only once and by only by one integration.

Refs: https://sentry.zendesk.com/agent/tickets/1054

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions