Tweak Sentry again

This commit is contained in:
Neil Alexander 2022-09-05 17:37:17 +01:00
parent 5992b4c7ed
commit fd7661f69c
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -61,8 +61,7 @@ func MakeAuthAPI(
hub := sentry.GetHubFromContext(req.Context())
if hub != nil {
hub.Scope().SetUser(sentry.User{
Username: device.UserID,
IPAddress: req.RemoteAddr,
Username: device.UserID,
})
hub.Scope().SetTag("user_id", device.UserID)
hub.Scope().SetTag("device_id", device.ID)