mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Improve Sentry reporting
This commit is contained in:
parent
ecee5f10f4
commit
cd22ba22b0
3 changed files with 17 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue