-
Notifications
You must be signed in to change notification settings - Fork 135
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: use page visibilityState for browser responsiveness check #813
feat: use page visibilityState for browser responsiveness check #813
Conversation
Codecov Report
@@ Coverage Diff @@
## master #813 +/- ##
==========================================
+ Coverage 92.66% 92.87% +0.20%
==========================================
Files 50 51 +1
Lines 2291 2511 +220
Branches 456 547 +91
==========================================
+ Hits 2123 2332 +209
- Misses 165 176 +11
Partials 3 3
|
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
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.
Added some comments @jahtalab, Lets merge the changes from metrics.js
as well in the same PR.
3f7928f
to
3037628
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 @jahtalab Added some comments. Could you add some tests? You can modify the state like how its done for TBT and other metrics test.
packages/rum-core/src/performance-monitoring/transaction-service.js
Outdated
Show resolved
Hide resolved
packages/rum-core/src/performance-monitoring/transaction-service.js
Outdated
Show resolved
Hide resolved
📦 Bundlesize report
|
* upstream/master: (23 commits) feat(rum-core): capture XHR/Fetch spans using resource timing (elastic#825) docs: update set-up.asciidoc (elastic#814) chore: remove compressed size gh workflow (elastic#828) feat: use page visibilityState for browser responsiveness check (elastic#813) ci(jenkins): report bundlesize as a GitHub comment (elastic#826) docs: release notes for 5.2.1 (elastic#824) chore(release): publish fix(rum-core): protect aganist buggy navigation timing data (elastic#819) fix(rum-core): protect aganist buggy navigation timing data (elastic#819) chore(rum-core): use startTime for LCP marks (elastic#815) fix(rum-core): capture tbt after all task entries are observed (elastic#803) feat(rum-react): use correct path when route is path array (elastic#800) ci: enable benchmark on a PR basis (elastic#812) ci: use dockerLogs step (elastic#810) fix: env var invalid type (elastic#809) fix: workarount for elastic/beats#18858 (elastic#807) docs: add release notes for 5.2.0 (elastic#801) chore(release): publish fix(rum-core): consider user defined type of high precedence (elastic#798) fix(rum): use single instance of apm across all packages (elastic#796) ...
…tic#813) * feat: use page visibilityState for browser responsiveness check * chore: merge state and env merge bootstrap files * chore: address review
This PR adds document visibilityState to check for browser responsiveness. The bootstrap function is added to keep all side-effects in one place.
metrics.js
Closes #295