Skip to content

ANR improvements - Mechanism and docs #1954

Open
@bruno-garcia

Description

@bruno-garcia

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions