aboutsummaryrefslogtreecommitdiff
path: root/internal/httputil
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-09-05 17:25:11 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-09-05 17:25:11 +0100
commitcd22ba22b01fe5197bf8e4630c8414dd413225af (patch)
treea40edd43c5e1d6b80eb517abdf611e930ab6b61f /internal/httputil
parentecee5f10f49487f0b6628fea065914ea3e685a79 (diff)
Improve Sentry reporting
Diffstat (limited to 'internal/httputil')
-rw-r--r--internal/httputil/httpapi.go1
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)
}