summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Feng <erichfeng@gmail.com>2016-08-10 13:44:57 -0700
committerEric Feng <erichfeng@gmail.com>2016-08-10 13:44:57 -0700
commite45244b54a0ae15e9835ea12f20896534cb427d8 (patch)
tree37518c44cb0cfed0f3def7683c1f693aacd08dcd
parentc2be387c26b2069210d05fdc9aa6ccbf54abfe90 (diff)
downloadraven-flask-config-docs.tar.gz
Flask config docsflask-config-docs
Adding instructions on how to add configuration to the Flask Sentry client. Resolves #829. /cc @armin
-rw-r--r--docs/integrations/flask.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/integrations/flask.rst b/docs/integrations/flask.rst
index 459c400..637d073 100644
--- a/docs/integrations/flask.rst
+++ b/docs/integrations/flask.rst
@@ -110,6 +110,17 @@ Log a generic message with ``captureMessage``::
sentry.captureMessage('hello, world!')
+Configure
+---------
+
+To configure Sentry to add additional context to errors (such as
+release or environment), simply add the keys to ``app.config``
+
+ app.config['SENTRY_RELEASE'] = raven.fetch_git_sha(os.path.dirname(__file__))
+
+Sentry automatically looks for ``SENTRY_RELEASE``, ``SENTRY_CONTEXT``,
+``SENTRY_ENVIRONMENT``, ``SENTRY_TAGS``, and ``SENTRY_IGNORE_EXCEPTIONS``.
+
Getting The Last Event ID
-------------------------