Skip to content

Conversation

@philipphofmann
Copy link
Member

@philipphofmann philipphofmann commented Jun 20, 2022

📜 Description

Prewarming can execute code up to viewDidLoad of a UIViewController,
and keep the app in the background. This can lead to auto-generated
transactions lasting for minutes or event hours. Therefore, we drop
transactions lasting longer than 5 minutes.

💡 Motivation and Context

Another mitigation for #1896 and #1897

💚 How did you test it?

Unit tests.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • Review from the native team if needed
  • No breaking changes

🔮 Next steps

Prewarming can execute code up to viewDidLoad of a UIViewController,
and keep the app in the background. This can lead to auto-generated
transactions lasting for minutes or event hours. Therefore, we drop
transactions lasting longer than 5 minutes.
@philipphofmann philipphofmann marked this pull request as ready for review June 20, 2022 12:45

- (BOOL)isAutoGeneratedTransaction
{
return self.waitForChildren || [self hasIdleTimeout];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't waitForChildren a public api folks can use?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it isn't.

@philipphofmann philipphofmann merged commit facb133 into master Jun 20, 2022
@philipphofmann philipphofmann deleted the fix/threshold-auto-transactions branch June 20, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants