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

ANR improvements - Mechanism and docs #1954

Open
bruno-garcia opened this issue Jan 9, 2025 · 0 comments
Open

ANR improvements - Mechanism and docs #1954

bruno-garcia opened this issue Jan 9, 2025 · 0 comments
Labels
Feature New feature or request Platform: Android

Comments

@bruno-garcia
Copy link
Member

Today doesn't seem like we set any Mechanism:

OnApplicationNotResponding?.Invoke(this, new ApplicationNotRespondingException(message));

The .NET SDK has a function to help set it:
https://github.com/getsentry/sentry-dotnet/blob/c2c737b37882ae5a9a34e17de9386eb620f00ba4/src/Sentry/SentryExceptionExtensions.cs#L35

These are used by customers to filter things out in Sentry. As well as a clear way to see where things came from when looking at an event.

Additionally, ANR tends to mean that the app crashed because the UI thread is blocked. (this can also be added to the mechanism description)
So might be worth clarifying that this is not the case with Unity.

Mobile: Also worth clarifying in the docs that this detection is not the same as the Android and iOS, and how they differ. And that they automatic instrumentation disables the native detection because they don't work on Unity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Platform: Android
Projects
Status: No status
Development

No branches or pull requests

1 participant