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

IdleTransaction's finalTimeout will exceed when the app is in background #3150

Closed
1 task done
Tracked by #3149 ...
krystofwoldrich opened this issue Jun 27, 2023 · 3 comments
Closed
1 task done
Tracked by #3149 ...
Assignees
Milestone

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jun 27, 2023

Description

In RN the JS thread gets paused when the app goes to the background. Scheduled tasks like JS timeouts that would be executed during the time in the background will get executed after reopening the app. If the scheduled task was a Tx final timeout this can cause a Transaction that is hours/days long.

Solution

Since finalTimeout marks the length of Tx that can't be exceeded I think we should adjust the length of the transaction in this case.

Related issues

  1. 1 of 1
    Platform: React-Native
    lucas-zimerman
@kahest
Copy link
Member

kahest commented Jul 21, 2023

related JS issue: getsentry/sentry-javascript#8504

@krystofwoldrich
Copy link
Member Author

Browser JS is experiencing the exact same issue, but instead of the app going to the background the browser tab JS execution is paused by the Browser, we should fix this in JS SDK.

Graph explaining what is happening and how we can fix it.

@krystofwoldrich
Copy link
Member Author

Fixed by JS getsentry/sentry-javascript#8653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants