moodle-tool_sentry¶
Sentry error tracking and APM for Moodle.
Sends Moodle errors, exceptions and performance data to Sentry, in the cloud (sentry.io) or self-hosted. It can start before Moodle, through auto_prepend_file, and so capture even database connection failures.
Features¶
The tool_otel column shows whether the moodle-tool_otel plugin (OpenTelemetry tracing, version 0.1.0) also offers the feature. See the full comparison in OpenTelemetry and Sentry.
Feature |
tool_sentry |
tool_otel |
|---|---|---|
Capture of exceptions and PHP errors with their real source file and line. |
✅ |
❌ |
Capture of fatal errors ( |
✅ |
❌ |
Prepend mode: starts before |
✅ |
❌ |
|
✅ |
❌ |
Context of scheduled and adhoc tasks (type, class, component, id and log of the task). |
✅ On errors. |
✅ Task spans, with |
Browser JavaScript errors, through the Sentry JavaScript Loader. |
✅ |
❌ |
Stable issue grouping: browser errors without the JavaScript revision of the URLs, session lock errors without the session id (Issue grouping). |
✅ |
❌ |
Performance tracing. |
⚠️ Partial: enables SDK tracing ( |
⚠️ Partial: spans for requests, web services and tasks, database aggregates per request; no |
Profiling ( |
⚠️ Depends on SDK tracing. |
❌ |
Sending to Sentry (sentry.io or self-hosted). |
✅ |
⚠️ Traces only, through OTLP. |
Sending to other backends (Jaeger, Grafana Tempo and other OTLP-compatible backends). |
❌ |
✅ |
Data protection: values of sensitive parameters ( |
⚠️ In prepend mode only. |
✅ Spans without personal data and without query strings; |
Id of the captured event in the |
⚠️ In prepend mode only. |
❌ |
Connection test button (Send Exception) on the settings page. |
✅ |
❌ |
Legend: ✅ available; ⚠️ partial or only under the stated condition; ❌ not offered.
Requirements¶
Plugin version |
Moodle |
PHP |
|---|---|---|
5.3.x (branch |
5.3 |
8.3+ |
1.0.x (branch |
4.1 and 4.5 |
8.1+ |
You also need a Sentry project and its DSN.