Skip to content

feat(browser): Bump web-vitals to 3.5.2 #11391

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 3 commits into from
Apr 4, 2024
Merged

feat(browser): Bump web-vitals to 3.5.2 #11391

merged 3 commits into from
Apr 4, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 3, 2024

There are some bug fixes in the meanwhile.

@mydea mydea self-assigned this Apr 3, 2024
Copy link
Contributor

github-actions bot commented Apr 3, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 76.21 KB (+0.18% 🔺)
@sentry/browser (incl. Tracing, Replay) 67.46 KB (+0.18% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) 71.28 KB (+0.17% 🔺)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.03 KB (+0.22% 🔺)
@sentry/browser (incl. Tracing) 32.13 KB (+0.39% 🔺)
@sentry/browser (incl. browserTracingIntegration) 32.13 KB (+0.39% 🔺)
@sentry/browser (incl. feedbackIntegration) 31.28 KB (0%)
@sentry/browser (incl. feedbackModalIntegration) 31.39 KB (0%)
@sentry/browser (incl. feedbackScreenshotIntegration) 31.39 KB (0%)
@sentry/browser (incl. sendFeedback) 27.35 KB (0%)
@sentry/browser 22.52 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 71.21 KB (+0.18% 🔺)
CDN Bundle (incl. Tracing, Replay) 65.94 KB (+0.21% 🔺)
CDN Bundle (incl. Tracing) 32.27 KB (+0.41% 🔺)
CDN Bundle 23.74 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 205.5 KB (+0.23% 🔺)
CDN Bundle (incl. Tracing) - uncompressed 96.21 KB (+0.48% 🔺)
CDN Bundle - uncompressed 70.05 KB (0%)
@sentry/react (incl. Tracing, Replay) 67.46 KB (+0.23% 🔺)
@sentry/react 22.55 KB (0%)

@mydea
Copy link
Member Author

mydea commented Apr 3, 2024

I removed the polyfill, now it is just a small increase!

@mydea mydea marked this pull request as ready for review April 3, 2024 14:36
@mydea mydea requested review from AbhiPrasad and timfish April 3, 2024 14:37
import type { MetricRatingThresholds, ReportOpts, TTFBReportCallback } from './types';

/** Thresholds for TTFB. See https://web.dev/articles/ttfb#what_is_a_good_ttfb_score */
// NOTE (Sentry): We use a lower threshold here than web-vitals, which uses [800, 1800]
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to self: I lowered this so tests would pass etc. Not sure if it makes sense to not capture this when lower than 800 🤷 we can revisit this later.

@mydea mydea merged commit cbe9336 into develop Apr 4, 2024
@mydea mydea deleted the fn/web-vitals branch April 4, 2024 09:19
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
There are some bug fixes in the meanwhile.
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.

3 participants