Skip to content

Add option to exclude exceptions from reporting #612

@ysdis

Description

@ysdis

According to current version of the Sentry PHP documentation in the Filtering chapter is suggested to use before_send callback and catch unwanted exceptions by yourselves. There is a much easier way get around that.

Why we just can't add an option called excluded_exceptions that will filled with list of FQCNs (by the way this option is already implemented in the sentry-ruby repository):

Example:

sentry:
    options:
        excluded_exceptions:
            - Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions