diff options
author | Saulius Menkevičius <saulius.menkevicius@gmail.com> | 2013-10-09 16:29:57 +0300 |
---|---|---|
committer | Saulius Menkevičius <saulius.menkevicius@gmail.com> | 2013-10-09 16:29:57 +0300 |
commit | adc6c726f6ef17d67785b40a3ac9840f312d4c68 (patch) | |
tree | 120157c496435411caeb367c25d5b66272c0db0b | |
parent | 15bab4e2919770588c7c35ca81c68cefdcc954cc (diff) | |
download | raven-adc6c726f6ef17d67785b40a3ac9840f312d4c68.tar.gz |
docs/config/flask.rst: update documentation on exception filtering
-rw-r--r-- | docs/config/flask.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/config/flask.rst b/docs/config/flask.rst index fd92b0e..d32a1a6 100644 --- a/docs/config/flask.rst +++ b/docs/config/flask.rst @@ -45,6 +45,15 @@ By default, only the ``id`` (current_user.get_id()), ``is_authenticated``, and ` ``email`` will be captured as ``sentry.interfaces.User.email``, and any additionl attributes will be available under ``sentry.interfaces.User.data`` +You can specify the types of exceptions that should not be reported by Sentry client in your application by setting the ``RAVEN_IGNORE_EXCEPTIONS`` configuration value on your Flask app configuration:: + + class MyExceptionType(Exception): + def __init__(self, message): + super(MyExceptionType, self).__init__(message) + + app = Flask(__name__) + app.config["RAVEN_IGNORE_EXCEPTIONS"] = [MyExceptionType] + Usage ----- |