doc/operations/sentry_error_tracking.md
{{< details >}}
{{< /details >}}
Sentry is an open source error tracking system. GitLab enables administrators to connect Sentry to GitLab, so users can view a list of Sentry errors in GitLab.
GitLab integrates with both the cloud-hosted Sentry and Sentry deployed in your on-premise instance.
GitLab provides a way to connect Sentry to your project.
Prerequisites:
To enable the Sentry integration:
project:read, event:read, and
event:write (for resolving events).https://sentry.example.com.
For the SaaS version of Sentry, the hostname is https://sentry.io.
For the SaaS version of Sentry hosted in the EU, the hostname is https://de.sentry.io.To view a list of Sentry errors, on your project's sidebar, go to Monitor > Error Tracking.
You might also want to enable Sentry's GitLab integration by following the steps in the Sentry documentation.
When working with Error Tracking, you might encounter the following issues.
Connection failed. Check auth token and try againIf the Monitor feature is disabled in the
project settings,
you might see an error when you try to enable Sentry integration for a project.
The resulting request to /project/path/-/error_tracking/projects.json?api_host=https:%2F%2Fsentry.example.com%2F&token=<token> returns a 404 error.
To fix this issue, enable the Monitor feature for the project.
Connection has failed. Re-check Auth Token and try againOn-premise Sentry integrations may encounter this issue when attempting to connect.
Prerequisites:
To fix this issue: