Skip to content
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

feat(packages/sui-react-web-vitals): improve LCP and INP reporting #1618

Merged
merged 14 commits into from
Aug 8, 2023

Conversation

jordevo
Copy link
Contributor

@jordevo jordevo commented Aug 3, 2023

Description

Adding necessary features so that reportAllChanges: true can be configured for specific metrics, which provides more fine-grained data about CWV metrics. By default, setting it for LCP and INP. Also, by importing the web-vitals/attribution build, we're also able to collect the elements of the page related to the recorded performance metrics.

Enabling custom thresholds for metrics via props to allow for fine-tuning of performance metrics, reduce noise on reporting or simply go with Google's defined thresholds for CWV.

Related Issue

n/a

Example

Copy link
Member

@nucliweb nucliweb left a comment

Choose a reason for hiding this comment

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

👏🏼

@jordevo jordevo changed the title feat(packages/sui-react-web-vitals): add reporting all changes for de… feat(packages/sui-react-web-vitals): better reporting of LCP and INP Aug 4, 2023
@jordevo jordevo changed the title feat(packages/sui-react-web-vitals): better reporting of LCP and INP feat(packages/sui-react-web-vitals): improve LCP and INP reporting Aug 4, 2023
Copy link

@hpintos hpintos left a comment

Choose a reason for hiding this comment

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

👏🏼👏🏼👏🏼

Copy link
Contributor

@oriolpuig oriolpuig left a comment

Choose a reason for hiding this comment

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

❤️

packages/sui-react-web-vitals/src/index.js Outdated Show resolved Hide resolved
packages/sui-react-web-vitals/src/index.js Outdated Show resolved Hide resolved
@jordevo jordevo merged commit 7d070dc into master Aug 8, 2023
2 checks passed
@jordevo jordevo deleted the feat-web-vitals-reporter-enhance-metrics-reporting branch August 8, 2023 10:33
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.

5 participants