#Having issues with Go setting User and Environment

2 messages · Page 1 of 1 (latest)

dire egret
#

Hi all.

I am trying to integrate sentry into my app and I am having issues. Using the code below, I am seeing environment get set in the Tags section but I'm not seeing anything about the user. It's printing the ID of the user but I'm not seeing anything about it in sentry.

sentry.ConfigureScope(func(scope *sentry.Scope) {
            scope.SetUser(sentry.User{
                ID:       user.UserID,
                Email:    user.Email,
                Username: user.Username,
            })
            fmt.Println("TESTING:", user.UserID)

            scope.SetTag("environment", api.Config.Env)
        })
#

Actually, environment isn't actually working either. I just changed that to environment2 to test and it shows up nowhere.