Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Document backend Sentry error logging.
Alex Vandiverbcd190ecf268
diff --git a/docs/subsystems/logging.md b/docs/subsystems/logging.mdindex 74e0e9b1bb4..6cabbc54265 100644--- a/docs/subsystems/logging.md+++ b/docs/subsystems/logging.md@@ -39,11 +39,31 @@ Since 500 errors in any Zulip server are usually a problem the serveradministrator should investigate and/or report upstream, we have thisemail reporting system configured to report errors by default.-Zulip's optional [Sentry][sentry] integration will aggregate errors to-show which users and realms are affected, any logging which happened-prior to the exception, local variables in each frame of the+### Sentry error logging++Zulip's optional backend [Sentry][sentry] integration will aggregate+errors to show which users and realms are affected, any logging which+happened prior to the exception, local variables in each frame of theexception, and the full request headers which triggered it.+You can enable it by:++1. Create a [project][sentry-project] in your Sentry organization+ with a platform of "Django."+2. Copy your [Sentry DSN][sentry-dsn] into `/etc/zulip/settings.py`+ as `SENTRY_DSN`:+ ```python3+ ## Controls the DSN used to report errors to Sentry.io+ SENTRY_DSN = "https://[email protected]/1234"+ ```+3. As the `zulip` user, restart Zulip by running:+ ```shell+ /home/zulip/deployments/current/scripts/restart-server+ ```++[sentry-project]: https://docs.sentry.io/product/projects/+[sentry-dsn]: https://docs.sentry.io/product/sentry-basics/dsn-explainer/+### Backend logging[Django's logging system][django-logging] uses the standard