Why run Open edX error monitoring with Sentry
When learners report that a quiz will not submit or a course page shows an error, the operator's first problem is finding the failure among many containers. A grouped, searchable record of application errors turns scattered log lines into a short list of distinct faults, each with a count, a first and last seen time, and a stack trace. Sentry is an error tracking service that can receive these events from the running application, which is what container logs alone do not give a team without extra tooling.
Open edX is a Django application written in Python, with JavaScript in the browser and in the React-based micro-frontends. An exception in the LMS, Studio or a Celery worker is raised in a different process from the one a learner's browser reports, so the same incident can appear in several places. Tutor is the officially supported Docker-based distribution for production, and the Sentry integration is delivered as a Tutor plugin. Confirm with your own Tutor version and plugin documentation which services and frontends the plugin instruments, and whether frontend errors are captured in your setup.
Teams need this once real learners are on the platform, because that is when a failure has a cost in missed deadlines, support tickets and grades. Ask whether your environment has a Sentry account or self-hosted instance that your security team approves for application data, and who on your side will triage alerts. The plugin choice, the DSN handling and the sampling and retention settings belong to your environment and should be decided with your operations and privacy owners before the first production release.
Where error events leave your infrastructure
Errors start in the learner's browser and in the LMS and Studio containers that Tutor runs inside your infrastructure. The Tutor Sentry plugin attaches a DSN to those services, and the DSN decides where events are sent. Before anything crosses the network boundary, a scrub step should remove personal data such as learner names, emails and request bodies. Check which endpoint the DSN points to and confirm the scrub rules are applied on the path that leaves your network.
Error events flow from learner browsers and Open edX services through a scrub step to Sentry.
Sentry deployment and configuration options compared
This table compares hosted and self-hosted Sentry, one project per service against shared projects, and the scrubbing settings for request data, user identifiers and breadcrumbs. Read each row as a decision: the right column names when the option fits and what it costs in residency, spend and operating effort.
| Option | When it fits | Data residency trade-off | Cost and operating effort |
|---|---|---|---|
| Hosted Sentry | Team wants error monitoring running quickly and has no capacity to operate a Sentry server | Error events leave your infrastructure; confirm the hosting region and data processing terms with the vendor | Recurring subscription based on event volume; low operating effort, but volume growth raises spend |
| Self-hosted Sentry | Compliance or residency rules require error data to stay in infrastructure you control | Events and stack traces stay in your data center or cloud account | One-time setup plus recurring upgrades, storage and backups; higher operating effort for the platform team |
| One Sentry project per Open edX service | Teams need separate alert routing and ownership for LMS, Studio, Celery workers and other services | Same residency as the chosen deployment; no extra exposure from separation | More projects to manage and alert rules to keep in sync; clearer triage ownership |
| Shared Sentry project across services | Small deployments with one on-call group and few services | Same residency as the chosen deployment | Fewer projects to maintain; issues from different services mix and are harder to route |
| Scrubbing request data | Any deployment, because request bodies and form posts can carry learner input | Reduces personal data sent to Sentry in either hosting model | Set once in configuration; confirm which fields are excluded by testing a sample error |
| Scrubbing user identifiers | Any deployment where learner usernames, emails or IDs would identify a person | Limits identifiable data in event users and tags; confirm which identifiers the plugin sends | Low ongoing effort; review after each Open edX upgrade that adds new user context |
| Scrubbing breadcrumbs | Deployments where logs or navigation trails may include query strings or tokens | Prevents sensitive values from appearing in event history | Needs review of sample events; a missed breadcrumb source can expose data until the rule is updated |
Setting up the Tutor Sentry plugin step by step
This sequence takes a Tutor-based Open edX platform from an unmonitored state to one where application errors reach a Sentry project from staging, with learner personal data verified as absent before production is touched. Each step ends with a check you can record as evidence.
Confirm the Tutor version in use
The platform engineer records the Tutor version and the named Open edX release running in staging and production, then confirms the Sentry plugin release you plan to install is compatible with that Tutor version. Check the plugin's own documentation and the Tutor plugin index before you install anything, because plugin releases track Tutor releases. Done when both versions are written in the change ticket and the team agrees they match.
Create the Sentry project and DSN
A Sentry organization owner creates a separate project for each environment, usually one for staging and one for production, so events are never mixed. Copy the DSN for each project into your secrets store rather than into a shared document. Done when each project exists, has a DSN recorded in the secrets store, and the owner has confirmed who can view events for that project.
Install the Tutor Sentry plugin
On the Tutor host for staging, the platform engineer installs the Sentry plugin into the Tutor Python environment, then enables it with the Tutor plugin commands. Confirm the plugin appears in the list of enabled plugins before going further. Done when the plugin shows as enabled and the change is recorded in version control with the rest of the Tutor project root.
Set the DSN and environment name
Set the DSN and an environment name such as staging in the Tutor configuration, keeping the DSN in your secrets handling method rather than in plain text in the project root. Use a distinct environment label per deployment so events can be filtered in Sentry. Confirm the exact configuration key names against the plugin's README for your version. Done when the configuration reads correctly and the DSN value is not visible in committed files.
Apply the configuration and restart
Apply the configuration changes with Tutor, then restart the affected services so the new settings load in the LMS and Studio processes. Watch the service logs for startup errors that mention the Sentry SDK or the DSN. Done when all services report healthy after the restart and the logs show no configuration errors related to Sentry.
Trigger a test error in staging
Raise a deliberate test error in staging using a non-production test account, for example by calling a test route or a test script that the team has agreed to run. Open the staging Sentry project and confirm the event arrives with the expected environment label and release information. Done when the test event is visible in Sentry with a timestamp that matches the test.
Inspect the payload for learner personal data
Open the test event and review every field, including request data, user context, breadcrumbs and tags, looking for learner email addresses, usernames, full names or other profile details. Confirm that user context is either absent or reduced to a non-identifying value, and that the scrubbing settings in the plugin or Sentry project remove sensitive fields. Repeat the test with an account that has a realistic-looking profile only if your privacy team has approved it. Done when the reviewer signs off that no personal data appears, and any gaps are logged as blockers before production.
Repeat the setup for production with review
Once staging passes, repeat the installation and configuration on production using the production DSN and environment label, then trigger one controlled test error and check the event payload again. Keep the staging evidence and the production test record together for your change review. Done when production events arrive under the production project and the payload review is recorded as passed.
Keeping learner personal data out of error reports
Learner personal data reaches Sentry through more paths than the exception itself: form bodies, the user context the framework attaches, email addresses printed in messages and the query strings on every request. Each path needs its own control, and each control needs a test with synthetic learner accounts before the Sentry project receives real traffic.
Request bodies on registration and profile forms
Registration, account settings and profile forms post names, email addresses, dates of birth and sometimes demographic fields. If the SDK captures request bodies, those values can land in a Sentry event whenever the view raises an error. Configure the SDK to drop or scrub request data for account and profile endpoints, and confirm the scrubbing applies to the LMS and Studio separately. Test by submitting a synthetic registration with a unique marker email, forcing a validation error, and searching the resulting event for that marker.
User context set by the framework
Sentry's integrations can attach the logged-in user's ID, username, email and IP address to every event in the session. For a learner platform, the user ID is usually enough to correlate an error with a support ticket, while the email and IP address add personal data without much diagnostic value. Decide which user fields your team needs, disable the rest in the SDK configuration, and check that the user object on a test event contains only the fields you chose.
Email addresses in exception messages
Exception messages often include the identifier that failed, such as an email address in a lookup that returned no account or a duplicate-registration error. Sentry groups and displays these messages, so the address can appear in the issue title as well as the event body. Review the code paths that build messages for account, enrollment and email operations, and apply a before-send hook that replaces email patterns with a placeholder. Test by triggering a duplicate-email error with a synthetic account and checking the title and the stack message.
Query strings and breadcrumb filtering
Query strings can carry tokens, password reset parameters, course or enrollment identifiers and redirect targets that include personal details. Breadcrumbs record URLs, navigation and log lines leading up to an error, so they can repeat the same values even when the request body is scrubbed. Filter query parameters by name in the SDK, and drop or truncate breadcrumbs that come from authentication and profile routes. Test by following a password reset and an enrollment link with synthetic accounts, then reviewing the breadcrumb trail on a forced error.
Verifying scrubbing before launch
Scrubbing rules drift as the platform changes, so a one-time configuration is not a control. Keep a fixed set of synthetic learner accounts with recognizable markers, run a scripted set of error-producing flows after each Tutor configuration change or upgrade, and record the results. Ask your Sentry administrator to confirm data scrubbing and retention settings on the project, and check with your privacy or legal team which fields count as personal data for your jurisdiction.
What to alert on in Open edX Sentry
Which new issue spikes in the LMS should trigger an alert?
Alert on new issues first and on sudden rises in the event count of existing issues, not on every error. A new issue is an exception group Sentry has not seen before, often right after a deploy, a configuration change or a plugin update. Set the rule to fire when a new issue appears in the LMS environment and when one issue's event count crosses a threshold within a rolling window you choose. Learners hit the LMS directly, so a spike in enrollment, course-view or certificate-related exceptions usually means a learner-facing outage is starting. Start with a high threshold, watch a few normal weeks, then lower it. The right numbers depend on your traffic, so tune them against your own baseline rather than a vendor default.
- Scope the rule to the production environment and the LMS service.
- Group by issue so one noisy bug does not page the team repeatedly.
- Review and adjust thresholds after each release.
What Studio errors after a deploy are worth alerting on?
Alert on any new Studio issue for the first period after a deploy, because course authors are blocked by Studio failures even when learners are unaffected. Studio (CMS) errors often show up in course outline saves, unit publishing, component editing and import or export. Create a release-scoped alert that compares errors in the window after each deployment against the window before it, using the release tag you set in Sentry. Route these alerts to the people who can roll back or hotfix, and include the course team contact in the runbook for authoring problems. Keep the window short and close it once the release is stable, so the alert does not stay on for routine changes.
How should failing Celery tasks be monitored in Open edX?
Alert on failed Celery task executions that repeat or that belong to a task family with user impact, such as certificate generation, email sending or grade updates. Open edX runs background work through Celery workers, so a failure may not appear in a web request at all. Sentry captures these exceptions when the worker is configured with the Sentry integration. Set one alert for repeated failures of the same task name and another for a task that fails completely, for example a queue that stops consuming. Confirm in your own environment that worker errors reach Sentry, because a silent worker is a common gap. Pair Sentry with your queue and worker metrics so a stuck queue is not mistaken for a quiet day.
How do I catch email send failures without alerting on every bounce?
Alert on send failures from the mail task itself, not on individual bounced addresses, since bounces are normal for a learner population. A send failure is an exception raised while the platform tries to hand messages to your SMTP server, which points to a configuration, credential, TLS or relay problem that affects everyone. Create an alert for a sustained rise in mail-task exceptions over a short window, and a separate low-priority rule for bounce or rejection patterns that your mail provider reports. Keep learner addresses out of the alert body, as covered in the personal data section. Confirm the exact task names and mail settings in your Tutor configuration before writing the rule.
Which frontend errors on the learner dashboard matter most?
Alert on JavaScript errors that stop the learner dashboard from rendering or that spike after a frontend change, and leave cosmetic console warnings out of paging rules. The dashboard is the first screen many learners see, so a failed render means learners cannot find their courses. Use Sentry's browser SDK, check that source maps are uploaded for your build so stack traces are readable, and group rules by release. Filter out errors from browser extensions and third-party scripts, which are common noise. Tune the threshold by comparing error rates per browser and per release over several days, and send lower-severity frontend issues to a review queue instead of a pager.
How do I stop alert fatigue in Open edX error monitoring?
Set each alert to fire on a rate or a new issue, route it to one owner, and review every rule after the first few weeks of production traffic. Fatigue usually comes from alerts on single events, from duplicate rules that fire for the same bug, and from environments such as staging being routed to the on-call channel. Use three levels: page for learner-blocking or authoring-blocking issues, a daily digest for low-volume issues, and a weekly review for cleanup. Record the threshold, the reason for it and the owner in a short table, and revisit it after each Open edX upgrade or Tutor change. Thresholds are a local decision that depends on your traffic and support model, so confirm them with the people who answer the pager.
Can we set up Sentry alerting ourselves or do we need a partner?
Your own team can set up Sentry alerting if it can run Tutor, read Sentry projects and agree on owners, and a partner adds most value when the alert design needs review across several services. Setup work includes enabling the Tutor Sentry plugin, creating projects per service, setting environments and releases, writing alert rules and testing them with controlled errors. Costs come from internal engineering time, Sentry plan usage for your event volume, and any partner scope you agree in writing. Ask any partner for a fixed scope covering which services and environments are included, how thresholds are tested and who signs off the final rule set.
Security and operational considerations for Sentry data
Error reports leave the platform's trust boundary the moment they reach Sentry, so the project settings, retention, and secret handling need the same review as any other store of learner-adjacent data. The cards below cover the decisions a security team should make before the first event is sent.
Restrict access to the Sentry project
Limit the Sentry project to the engineers who run the Open edX platform, and assign roles by need rather than by seniority. Review membership when staff change and remove former contractors promptly. Confirm whether your Sentry plan supports single sign-on and enforced two-factor authentication for members, and turn both on if available. Treat an organization-wide invitation list as a finding during review.
Decide who sees stack traces and variables
Stack traces with local variable values can expose learner names, email addresses, and enrollment details captured in memory at the moment of failure. Decide which roles may open full event payloads, and separate that access from general triage access. Ask whether your Sentry configuration can hide variable values for all members, and document the exception process for the few engineers who need them during an incident.
Set event retention to match policy
Sentry keeps error events for a retention period that depends on your plan and settings, so confirm the current value in your account before go-live. Align it with your data retention schedule and your incident review cycle. A shorter period limits how long any leaked personal data stays available, while a longer one helps with trend analysis. Record the chosen value in the platform's data inventory.
Confirm where events are stored
Find out which region hosts the Sentry data for your organization and whether you can choose it. If you run a self-hosted Sentry instance, the storage location is your own, but the operating burden and backup duties move to your team. For hosted Sentry, the vendor becomes a third-party processor, so check contract terms, subprocessors, and data location before sending production errors.
Include Sentry in the security review
When Sentry is hosted by a vendor, the security review should treat it as a third-party processor that receives operational data from the platform. Ask for the vendor's security documentation, its data processing terms, and its breach notification commitments. Record the review outcome alongside other processors so the privacy and compliance teams can answer questions about where error data goes.
Handle the DSN as a secret
The Data Source Name (DSN) lets any holder send events into your Sentry project, so it should not appear in the Tutor project root, in Git repositories, or in shared chat. Store it in your team's secret handling process, inject it at deploy time, and rotate it through the same procedure as other credentials. Verify that it is absent from logs and error messages on the platform itself.
Questions teams ask before setting up Sentry for Open edX
How much effort does setting up Sentry for Open edX take?
The effort depends mostly on how many environments need error reporting, how much review the data scrubbing rules need, and how carefully the alerts are designed. A single production environment with one Sentry project is a small job. Adding staging, separate projects for the LMS and Studio, and a reviewed list of fields to remove from events adds work at each step. The Tutor Sentry plugin handles the wiring, so most of the effort is in decisions and testing rather than in code. Ask any partner for a written breakdown of environments, scrubbing review and alert design before agreeing scope.
Can an internal operator set up Sentry for Open edX alone?
Often yes, if the operator already runs Tutor, can edit the Tutor project root and has used Sentry before. The hard parts are not the installation. They are deciding what personal data must never leave the platform, confirming that scrubbing works with test accounts, and choosing alerts that someone will actually act on. An operator who lacks time for those checks, or who has no one to review the scrubbing rules, will get more value from a short review with a partner or a second engineer. Your team should own the final configuration either way.
What access and accounts does the setup need from my team?
Expect to provide access to the Tutor project root on the machine where Open edX runs, a Sentry account with rights to create or select projects and read DSNs, and a set of test learner accounts that can trigger errors without touching real learner records. You will also need a named owner who can approve the scrubbing rules and receive alerts. Keep Sentry credentials out of the repository and confirm who holds the administrator role in the Sentry organization before work begins.
How long does it take to reach a reviewed Sentry setup?
The duration is set by the number of environments, how quickly the approvers respond to the scrubbing review, and how many test cycles the alert rules need. Setup itself is usually the shortest step. Delays most often come from waiting for Sentry access, deciding which fields count as personal data, and tuning alerts after the first noisy week. Ask for a timeline with named review checkpoints in the written scope, and confirm which of your environments must be live before the first learner-facing launch.
What does keeping learner personal data out of error reports involve?
It involves configuring the Sentry SDK so that events drop or mask fields such as email addresses, names, usernames, IP addresses and request bodies that contain learner input, then testing those rules against deliberate errors raised from test accounts. The review should cover the LMS, Studio, background Celery workers and any custom XBlocks or plugins, because each can capture local variables and request data. Keep a written list of what is scrubbed and why, and repeat the test after every upgrade or new plugin. Confirm the data retention period in Sentry with your privacy owner.
Which alerts should we set up first for Open edX errors?
Start with a small set: new issues in the LMS and Studio, spikes in error volume compared with normal traffic, failures in background workers that handle email or grading, and errors that affect enrollment or login. Route each alert to a named team with a response expectation. Avoid alerting on every warning, since noisy alerts get ignored. Review the list after the first few weeks of real traffic and adjust thresholds based on what your team actually investigated.
Is a support partner or Tutor's professional support the right route?
Tutor is maintained by Edly, which offers professional support, and DeployOpen is a separate implementation partner that works inside your infrastructure. Choose Edly support when you want the Tutor project itself supported and your team handles the configuration. Choose a partner when you want the monitoring design, scrubbing review, alert rules and testing done as a fixed-scope piece of work, or when you need someone to run the setup alongside other Open edX changes. Ask each option what is covered, who reviews the data handling and what happens after go-live.
How DeployOpen scopes and delivers Sentry monitoring
DeployOpen plans, implements, hardens, documents and supports self-hosted platforms inside your own infrastructure, so error monitoring for Open edX is scoped against your hosting, your alert routing and your data handling rules. Engagements are fixed-scope, with the scope agreed in writing before any work starts.
How we scope
- Written scope names the Open edX services, environments and Sentry project layout covered by the work
- We confirm where the Sentry instance runs, whether it is self-hosted or hosted, and which data may leave your network
- Scope lists the alert rules, on-call recipients and scrubbing rules to be agreed with your security and operations teams
How we build
- We configure the Tutor Sentry plugin in your Tutor project root and record each setting change in version control
- We test that LMS and Studio errors reach Sentry, and that known personal data fields are removed before events are sent
- We run deliberate test errors in a non-production environment to confirm grouping, alert thresholds and notification paths
How we hand over
- You receive a runbook covering configuration, environment variables, data scrubbing rules and how to rotate Sentry credentials
- The handover includes a list of alerts, their owners and the response steps your team should follow for each
- Documentation states which settings we changed, so your team can review them during upgrades and compliance reviews
How we support
- Ongoing support covering alert tuning, plugin updates and reviews after each Open edX or Tutor upgrade is available as a retainer
- Retainer scope, response expectations and review cadence are written into the agreement, and we confirm them before work begins
- Continuous testing of scrubbing rules can be added to a retainer so new fields in releases are checked before they reach Sentry

