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

Show new app context for "app was in foreground/background" in event details #44251

Closed
Tracked by #52911
zoesyc opened this issue Feb 7, 2023 · 4 comments
Closed
Tracked by #52911

Comments

@zoesyc
Copy link

zoesyc commented Feb 7, 2023

Mobile app crashes can happen when the app is in the foreground or in the background. However, we currently do not surface this detail to the developer.

Image

Currently, we surface a stack trace value was active to developers (image above) but this can manifest differently depending on the framework:

  1. Single Thread frameworks (Flutter, React Native) - will be true regardless of the app being in foreground or background
  2. Multi-thread frameworks (Android, iOS) - will be at individual thread level and reflects state for that thread

For scenario 1, was active is not an accurate proxy for whether the app was in foreground/ background at crash time and this new value app.in_foreground aims to address this problem. While for scenario 2, was active can be a more accurate proxy.

Surfacing app.in_foreground raises a scoping question: Do we want to surface this as a tag?
It has already be made searchable in the Issue stream and we see value in being able to break metrics down by this value.

Image

Additional notes:

@getsantry
Copy link
Contributor

getsantry bot commented Feb 7, 2023

Routing to @getsentry/team-mdx for triage, due by Thursday, February 9th at 11:26 am (sfo). ⏲️

@brentc
Copy link

brentc commented Feb 7, 2023

Currently, we surface a stack trace value was active to developers (image above) but this can manifest differently depending on the framework

From what I understood, I would actually say this value is independent of the state of the app. It's thread-specific and indicates if the current thread was active during the event.

@getsantry
Copy link
Contributor

getsantry bot commented Aug 2, 2023

Routing to @getsentry/product-owners-issues for triage ⏲️

@snigdhas
Copy link
Member

Looks like the related epic was completed 🥳

@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Dec 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Archived in project
Development

No branches or pull requests

6 participants