Move room_id to tag instead of context

This commit is contained in:
Till Faelligen 2024-01-17 21:16:46 +01:00
parent 7a9c635168
commit 0d68e49ac8
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -298,8 +298,8 @@ func (u *latestEventsUpdater) latestState() error {
}).Warnf("State reset detected (removing %d events)", removed)
sentry.WithScope(func(scope *sentry.Scope) {
scope.SetLevel("warning")
scope.SetTag("room_id", u.event.RoomID().String())
scope.SetContext("State reset", map[string]interface{}{
"Room ID": u.event.RoomID().String(),
"Event ID": u.event.EventID(),
"Old state NID": fmt.Sprintf("%d", u.oldStateNID),
"New state NID": fmt.Sprintf("%d", u.newStateNID),