diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-05 17:25:11 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-05 17:25:11 +0100 |
commit | cd22ba22b01fe5197bf8e4630c8414dd413225af (patch) | |
tree | a40edd43c5e1d6b80eb517abdf611e930ab6b61f /internal/httputil | |
parent | ecee5f10f49487f0b6628fea065914ea3e685a79 (diff) |
Improve Sentry reporting
Diffstat (limited to 'internal/httputil')
-rw-r--r-- | internal/httputil/httpapi.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/httputil/httpapi.go b/internal/httputil/httpapi.go index e0436c60..ab8319bb 100644 --- a/internal/httputil/httpapi.go +++ b/internal/httputil/httpapi.go @@ -60,6 +60,7 @@ func MakeAuthAPI( // add the user to Sentry, if enabled hub := sentry.GetHubFromContext(req.Context()) if hub != nil { + hub.Scope().SetTag("username", device.UserID) hub.Scope().SetTag("user_id", device.UserID) hub.Scope().SetTag("device_id", device.ID) } |