diff --git a/doc/operations/error_tracking.md b/doc/operations/error_tracking.md index 5fa2f351e25ec255d1b9911ac3b9a17697cdb294..785194a5c36ec6700d491af77b4dc68bb20270ba 100644 --- a/doc/operations/error_tracking.md +++ b/doc/operations/error_tracking.md @@ -72,6 +72,22 @@ To enable error tracking with GitLab as the backend: 1. Copy the Data Source Name (DSN) string. You need it for configuring your SDK implementation. +### Configure user tracking + +To track the number of users impacted by an error: + +- In the instrumentation code, ensure each user is uniquely identified. + + You can use a user ID, name, email address, or IP address to identify a user. + +For example, if you use [Python](https://docs.sentry.io/platforms/python/enriching-events/identify-user/), you can identify a user by email: + +```python +Sentry.setUser({ email: "john.doe@example.com" }); +``` + +For more information about user identification, see the [Sentry documentation](https://docs.sentry.io/). + ## Error tracking list After your application has emitted errors to the Error Tracking API through the Sentry SDK,