chore: fill sentry user.id with hostname.

This commit is contained in:
Romain Le Jeune
2023-02-15 16:11:04 +00:00
parent 2a4cb6a916
commit 26cf684fb8
2 changed files with 4 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func init() { //nolint:gochecknoinits
sentry.ConfigureScope(func(scope *sentry.Scope) {
scope.SetFingerprint([]string{"{{ default }}"})
scope.SetTag("UserID", "not-defined")
scope.SetUser(sentry.User{ID: getProtectedHostname()})
})
sentry.Logger = log.New(