-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(rum): Add measurements support and web vitals #2909
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
Conversation
size-limit report
|
Co-authored-by: Mark Story <mark@sentry.io>
1a2bafe
to
242a71d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@dcramer just meant we should make this on by default
2cf4af0
to
29c4b52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dashed! The implementation looks clear. A few comments on things we could improve, merge at will ;)
Co-authored-by: Rodolfo Carvalho <rodolfo.carvalho@sentry.io>
Co-authored-by: Rodolfo Carvalho <rodolfo.carvalho@sentry.io>
Co-authored-by: Rodolfo Carvalho <rodolfo.carvalho@sentry.io>
Co-authored-by: Rodolfo Carvalho <rodolfo.carvalho@sentry.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @dashed could you please add a README.md under .../web-vitals
with a link to the repo and which commit it was vendored from?
Perhaps another level .../vendor/web-vitals
and .../vendor/README.md
could make it even more obvious?
@kamilogorek could you please have a quick look here, do you agree with this strategy?
@kamilogorek can you push these new revisions to beta? 😄 |
# Conflicts: # packages/tracing/src/browser/metrics.ts # packages/tracing/src/transaction.ts
@HazAT @rhcarvalho @kamilogorek Would this be good to merge? |
Vendor
web-vitals
implementation from: https://github.com/GoogleChrome/web-vitalsRemoved LCP implementation added in feat: Report LCP metric on pageload transactions #2624
Add support for setting
measurements
interface for transaction events. This will not be officially documented as we're not allowing users to set their own measurements.Only
pageload
transactions will have measurements attached to them.Intercept FP (first paint) and FCP (first contentful paint) and create measurements from their values.
Added
mark.lcp
,mark.fcp
,mark.fp
, andmark.fid
, to be timestamps for vertical line markers on the span view. See below screenshot for their usage:TODO
place measurements behind an option flag and disable it by default.EDIT: enabled by defaultweb-vitals
library