Sentry plugin for Tutor
A tutor plugin to integration Open edX with Sentry.
pip install tutor-contrib-sentry
tutor plugins enable sentry
Make sure to rebuld the openedx docker image to install the sentry SDK
This plugin supports the following settings:
SENTRY_DSN
: The sentry DSN used for ingestion.SENTRY_IGNORED_ERRORS
: A list of rules with exceptions types to ignore, optionally you can ignore only specific exceptions that matches a list of regex.
SENTRY_IGNORED_ERRORS:
# Ignore all AuthFailedError exceptions
- exc_class: AuthFailedError
# Ignore all exceptions that match a regex
- exc_text:
- .*Email or password is incorrect
# Ignore all exceptions of type AuthFailedError that matches: .*Email or password is incorrect
- exc_class: AuthFailedError
exc_text:
- .*Email or password is incorrect
SENTRY_ENVIRONMENT
: The sentry environment. Defaults toproduction
.SENTRY_EXTRA_ARGS
: A dictionary with extra arguments for the sentry SDK. e.g:
SENTRY_EXTRA_ARGS:
traces_sample_rate: 1.0
profiles_sample_rate: 0.0
On production we recommend adjusting both traces_sample_rate
and profiles_sample_rate
as those
can impact performance. See the sentry configuration options for more information.
This software is licensed under the terms of the AGPLv3.