Skip to content

Fix TTFD measurement when API called too early #4297

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

Merged
merged 5 commits into from
Apr 15, 2025
Merged

Conversation

stefanosiano
Copy link
Member

📜 Description

Sentry.reportFullyDisplayed now sets a flag if the ttid is not finished.
When the TTID finishes, if the flag is set, the TTFD is finished as well

💡 Motivation and Context

Fixes #3384

💚 How did you test it?

Unit tests

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

When the TTID finishes, if the flag is set, the TTFD is finished as well
@stefanosiano stefanosiano marked this pull request as ready for review March 28, 2025 15:22
Copy link
Contributor

github-actions bot commented Mar 28, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 420.33 ms 457.47 ms 37.14 ms
Size 1.58 MiB 2.08 MiB 505.69 KiB

Previous results on branch: fix/ttfd-measurement

Startup times

Revision Plain With Sentry Diff
c10e97d 432.29 ms 480.24 ms 47.95 ms

App size

Revision Plain With Sentry Diff
c10e97d 1.58 MiB 2.22 MiB 655.02 KiB

Copy link
Member

@markushi markushi left a comment

Choose a reason for hiding this comment

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

LGTM!

@stefanosiano stefanosiano requested a review from lcian as a code owner April 15, 2025 08:46
@stefanosiano stefanosiano merged commit 32564c8 into main Apr 15, 2025
35 checks passed
@stefanosiano stefanosiano deleted the fix/ttfd-measurement branch April 15, 2025 10:18
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.

Overwrite TTFD measurement when API called too early
2 participants