Integrate Open edX with Sentry
Setting up Sentry crash reporting if you want to provide a reliable service, it’s extremely important to be aware of when things are going wrong on the website.
Sentry is a wonderful free system to catch Python exceptions.
For Django on Open edX, we use sentry-sdk to catch and report the errors back to Sentry.
-
Set up a Sentry server or use existing Sentry .
-
Set up two new services (LMS and Studio) in Sentry and get their DSN strings.
-
On Open edX instance, install sentry-sdk using pip.
sudo /edx/bin/pip.edxapp install sentry-sdk==1.2.0
-
Then configure the SDK, initialize it with the Django integration in your
settings.py
file as per sentry instructions after create new services in Sentry.- /edx/app/edxapp/edx-platform/lms/envs/production.py
- /edx/app/edxapp/edx-platform/cms/envs/production.py
-
Restart edxapp service and worker.
/edx/bin/supervisorctl restart lms cms edxapp_worker: