Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the user globally with configureScope does not work anymore #26

Open
nicolasbadia opened this issue Nov 19, 2021 · 1 comment
Open

Comments

@nicolasbadia
Copy link

Setting the user like this was working with version 0.7.0 but does not works with version 2.0.0 :

sentryTransport.sentry.configureScope(scope => {
  scope.setUser({
    id: '{{ grains.id }}',
    username: '{{ grains.id }}',
    email: '{{ grains.id }}',
  });
});

Maybe it come from this change: #11

@chances
Copy link

chances commented Mar 7, 2022

It also looks like the Sentry scope is cleared anytime something is logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants