Sentry email issue #8793
Unanswered
Nitesh2503
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I already responded in the StackOverflow thread: What you need to do is
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks for the reply but I tried this, it's not working
…On Fri, Aug 11, 2023 at 6:22 PM Luca Forstner ***@***.***> wrote:
I already responded in the StackOverflow thread
<https://stackoverflow.com/questions/76868005/sentry-issue-not-able-to-get-the-user-email-on-the-sentry>
:
What you need to do is
const scope = Sentry.getCurrentHub().getScope();
scope.setUser(exceptionObject.userDetails);
console.log(scope.getUser());
scope.setContext("Error Details", exceptionObject.errorDetails);
Sentry.captureMessage(errorTitle, scope);
—
Reply to this email directly, view it on GitHub
<#8793 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARGW7WGT4MBWWDKCKP6TVI3XUYTHJANCNFSM6AAAAAA3MPDKKM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on JS and using in my code, I am setting the email as Sentry.setUser(email) where email is the object and I am getting the proper email via checking through Sentry.getUser() in my console but in the sentry dashboard it's not showing the email of the respective user instead it's showing only the IP.
This is the snippet for your reference
In the above snippet the exceptionObject.userDetails contains the email id of the user in this format
{"email":"[email protected]"}
.In my logs according to the 3rd line
console.log(scope.getUser());
I'm getting the details as{"email":"[email protected]"}
but in the sentry I am not gettinmg the email, only IP address is shown there.Beta Was this translation helpful? Give feedback.
All reactions