Skip to content

Set Sentry.Protocol.Device and Sentry.Protocol.User #896

Answered by lucas-zimerman
dhpanteon asked this question in Q&A
Discussion options

You must be logged in to vote

I usually set the user the following way on Xamarin:

            SentrySdk.ConfigureScope(s =>
            {
                s.User.Id = "userid...";
                s.User.Username = "username...";
                s.User.Email = "email...";
            });

Also on SentryOptions, for registering the user IP I set the SendDefaultPii to true.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SimonCropp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #674 on March 23, 2021 22:08.