Update sentry client

This commit is contained in:
Pavel Škoda
2020-11-16 19:11:12 +01:00
committed by Jakub Cuth
parent 874882b554
commit 7b44f12ab1
5 changed files with 30 additions and 209 deletions

View File

@ -18,7 +18,7 @@
package pmapi
import (
"github.com/getsentry/raven-go"
"github.com/getsentry/sentry-go"
"github.com/pkg/errors"
)
@ -119,7 +119,11 @@ func (c *client) UpdateUser() (user *User, err error) {
}
c.user = user
raven.SetUserContext(&raven.User{ID: user.ID})
sentry.ConfigureScope(func(scope *sentry.Scope) {
scope.SetUser(sentry.User{
ID: user.ID,
})
})
var tmpList AddressList
if tmpList, err = c.GetAddresses(); err == nil {