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

Enrich ANRs happened before Sentry.init #3287

Open
romtsn opened this issue Mar 27, 2024 · 1 comment
Open

Enrich ANRs happened before Sentry.init #3287

romtsn opened this issue Mar 27, 2024 · 1 comment

Comments

@romtsn
Copy link
Member

romtsn commented Mar 27, 2024

Description

It can happen that there were ANRs prior to the Sentry.init call, which means we wouldn't be able to enrich them as we haven't persisted any information yet. We should fallback to something meaningful, e.g:

  • check if the app has been updated in the meantime, and if not just enrich with the current values
  • otherwise ...?
@markushi markushi changed the title Enirch ANRs happened before Sentry.init Enrich ANRs happened before Sentry.init Apr 3, 2024
@romtsn
Copy link
Member Author

romtsn commented Apr 3, 2024

Prior art for checking if there was an update https://github.com/square/papa/blob/main/papa/src/main/java/papa/internal/AppUpdateDetector.kt#L103

We could also store data to enrich ANRs similarly to how statup profiling works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

2 participants