Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

add parameter ignored_exception_types to the tornado client to allow ignore specific exceptions#638

Open
flaneur2020 wants to merge 4 commits intogetsentry:masterfrom
flaneur2020:add-tornado-ignore
Open

add parameter ignored_exception_types to the tornado client to allow ignore specific exceptions#638
flaneur2020 wants to merge 4 commits intogetsentry:masterfrom
flaneur2020:add-tornado-ignore

Conversation

@flaneur2020
Copy link
Copy Markdown
Contributor

We've deployed sentry to our website in tornado recently, but soon get flooded with exceptions like HTTPError: HTTP 404: Not Found. It would be cool for us to ignore them.

There's a option RAVEN_IGNORE_EXCEPTIONS in the flask client, but haven't the equivalent in the tornado client yet. This PR is a copycat about this option:

        app.sentry_client = AsyncSentryClient(
            '__DSN__',
            ignored_exception_types=[HTTPError],
        )

Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant