-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
dotnet code setting User.id not showing up in iOS events #3621
Comments
@gywright when you initialise Sentry, are you setting sentry-dotnet/src/Sentry/SentryOptions.cs Lines 87 to 90 in 708c2e9
|
@jamescrosswell afaik sentry-dotnet/src/Sentry/Platforms/Cocoa/SentrySdk.cs Lines 189 to 192 in de9278c
I gave this a try locally and I do get the user reported correctly on events captured through |
Closing this as we can't reproduce. Please reopen if you're able to describe how we can reproduce this problem. |
@jamescrosswell I'm experiencing this problem. I have an I don't know which SDK treats the events differently (dotnet / cocoa / native). It could even be Sentry Cloud for that matter (ingestion / processing / view). I can tell you that events generated from Lately I've been having issues in MAUI that stuff stops working in published builds, while working as they should in development. There seems to be a lot of AOT issues lately. Seems like when libraries are preparing themselves for .NET 9 and AOT they break AOT compatibility on .NET 8. So that could also be an issue. |
@bricefriha would you be able to try to reproduce this based on the steps @espenrl describes above? |
@jamescrosswell @bricefriha I've done some more in-depth testing. In most cases the |
thanks @espenrl, |
I also noticed that events on unhandled crashes, as a whole (when setting the user detail in a custom scope), don't have user details. So yeah, I think we can identify the issue quite consistently now
@espenrl I checked that, and the event processor seems to run before the event is sent. So, the scope data are being ignored. I will confirm that with other scope-related tests (like adding attachments etc) to confirm UpdateI tested adding other attachments, and they are indeed not considered either. It seems to be related to the same problem, so we won't need to create a separate issue |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.6 (and some on versions from 8.0.0 to 8.0.7, error still seen in all)
OS
iOS
SDK Version
4.4
Self-Hosted Sentry Version
No response
Steps to Reproduce
Image attached describes code used to set User.Id and User.Username. This provides values for Android devices, but not for iOS devices. This code block comes directly after Sentry .init block. Localhost testing and logging show id does have value just before code block for iOS device tested.
Expected Result
Expected to see User.Id and User.Username values for both Android and iOS.
Actual Result
No values for iOS devices. Customer believes this did work during initial testing, but no values seen in the last 90 days given code used (shown above).
The text was updated successfully, but these errors were encountered: