Commit ec7d4a9
authored
feat(telemetry): include user email in Sentry telemetry context (#513)
Add user email to the `Sentry.setUser()` call in
`initTelemetryContext()` alongside the existing user ID. The email is
already stored in the local SQLite DB from login/whoami flows — this
change simply passes it through.
When `email` is `undefined` (minimal user info with only userId), Sentry
ignores the field.
### Changes
- **`src/lib/telemetry.ts`**: Pass `user.email` to `Sentry.setUser()`
alongside `user.userId`1 parent dcd8e70 commit ec7d4a9
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
811 | 814 | | |
812 | 815 | | |
813 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments