-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 duration should not exceed final timeout #8504
Comments
we might be able to share the solution here with react native as they also have issues with final timeout: getsentry/sentry-react-native#3165 There's two possible approaches: |
Yes, we could share the fix, that would be nice. Although we incline to the option In RN the reason for the timeouts being executed with hours/days delay is simple, the apps are in the background. Other mobile SDKs, for example, Android calls its version of |
@AbhiPrasad, what triggers the end of a transaction? Are there any heuristics in place? |
@danielkhan, idle transactions (pageloads and navigations) end themselves when the page is at an idle state, which means there is no components rendering or active http requests. We have some extra heuristics in place for polling scenarios and artificially long activities to make sure transactions always finished. |
Right now
finalTimeout
just sets asetTimeout
, but doesn't actually enforce a maximum transaction length. This means there are some scenarios where a transaction has started, but has a super long duration (1 min+).If we see that a transaction's duration has exceeded the final timeout, we should drop it, because it means that the duration is effectively invalid (didn't respect
setTimeout
offinalTimeout
).┆Issue is synchronized with this Jira Improvement by Unito
The text was updated successfully, but these errors were encountered: