Use a single context instead

This commit is contained in:
Neil Alexander 2022-09-07 16:24:43 +01:00 committed by 0x1a8510f2
parent 59991bc86a
commit 3a0f6e03d8
No known key found for this signature in database
GPG key ID: 1C692E355D76775D

View file

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