Set Sentry.Protocol.Device and Sentry.Protocol.User #896
-
Please mark the type framework used:
Please mark the type of the runtime used:
Not able to set Sentry.Protocol.Device. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@dhpanteon What do you mean you're not able to set. Could you please try: SentrySdk.WithScope(s => {
s.Contexts.Device.Name = "name";
SentrySdk.CaptureMessage("test");
}); Does it work? Also, are you using Xamarin.Forms? @lucas-zimerman created an SDK for it, there's a preview version out already: https://github.com/getsentry/sentry-dotnet-xamarin |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
I usually set the user the following way on Xamarin:
Also on SentryOptions, for registering the user IP I set the SendDefaultPii to true.