Skip to content

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

@krystofwoldrich

Description

@krystofwoldrich

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
- [ ] https://github.com/getsentry/sentry-react-native/issues/3149

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions