Raven/Sentry support for LAVA Server
Project description
Raven support for LAVA
======================
This very small extension hooks up your LAVA system to Sentry via Raven, the
official Sentry client.
Installation
^^^^^^^^^^^^
You first need to deploy sentry itself somewhere (I recommend the standalone
mode). Installing this extension is rather easy::
$ pip install lava-raven
You need to edit your LAVA ``settings.conf``
(``/srv/lava/instances/.../etc/lava-server/settings.conf``) and define the
``SENTRY_DSN`` variable. You can get it from a running Sentry instance, follow
those steps::
1. Create a sentry user, sign in as that user
2. Click projects->manage
3. Select the desired sentry project (or just pick the default one)
4. Add yourself as a member. This allowed me to have the DSN variable.
Options
^^^^^^^
There are two conifguration options available, both are off by default:
USE_SENTRY_404_MIDDLEWARE
*************************
If you flip this to ``true`` all 404 error will be reported in Sentry.
USE_SENTRY_RESPONSE_MIDDLEWARE
******************************
If you flip this to ``true`` all crashing views will be handled by sentry with
a nice error message that contains the incidend ID.
======================
This very small extension hooks up your LAVA system to Sentry via Raven, the
official Sentry client.
Installation
^^^^^^^^^^^^
You first need to deploy sentry itself somewhere (I recommend the standalone
mode). Installing this extension is rather easy::
$ pip install lava-raven
You need to edit your LAVA ``settings.conf``
(``/srv/lava/instances/.../etc/lava-server/settings.conf``) and define the
``SENTRY_DSN`` variable. You can get it from a running Sentry instance, follow
those steps::
1. Create a sentry user, sign in as that user
2. Click projects->manage
3. Select the desired sentry project (or just pick the default one)
4. Add yourself as a member. This allowed me to have the DSN variable.
Options
^^^^^^^
There are two conifguration options available, both are off by default:
USE_SENTRY_404_MIDDLEWARE
*************************
If you flip this to ``true`` all 404 error will be reported in Sentry.
USE_SENTRY_RESPONSE_MIDDLEWARE
******************************
If you flip this to ``true`` all crashing views will be handled by sentry with
a nice error message that contains the incidend ID.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lava-raven-0.1.1.tar.gz
(3.6 kB
view details)
File details
Details for the file lava-raven-0.1.1.tar.gz
.
File metadata
- Download URL: lava-raven-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4d08e78f38aa6a1e7be742a0db46286ff5c01cdc6d55041a02f5d9da4ae7df |
|
MD5 | 77e9c23fc3a48bbc7d4e16b31777dfa9 |
|
BLAKE2b-256 | 14c2c6d2d559897819b73f2a286df58e2e1c8ee92d67712bb58155a48d16b941 |