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: Capture Page Resource Assets #1257

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

metal-messiah
Copy link
Member

Add detection for page resource assets which captures data as a BrowserPerformance event. This feature is being shipped in an experimental state and is off by default. To opt in to using this feature, it can be turned on by setting the config value init.performance.resources.enabled = true in Copy/Paste or NPM installations.

Overview

See this CDD for the base behavior of this feature.

Related Issue(s)

https://new-relic.atlassian.net/browse/NR-330514

Testing

New unit and e2e tests have been added to validate the behavior.

Copy link

github-actions bot commented Nov 19, 2024

Asset Size Report

Merging this pull request will result in the following asset size changes:

Agent Asset Previous Size New Size Diff
lite loader 29.24 kB / 10.6 kB (gzip) 29.32 kB / 10.64 kB (gzip) 0.27% / 0.37% (gzip)
lite async-chunk 53.75 kB / 17.44 kB (gzip) 52.84 kB / 17.2 kB (gzip) -1.69% / -1.39% (gzip)
pro loader 50.3 kB / 17.39 kB (gzip) 50.7 kB / 17.49 kB (gzip) 0.81% / 0.58% (gzip)
pro async-chunk 99.95 kB / 30.48 kB (gzip) 100.82 kB / 30.68 kB (gzip) 0.86% / 0.65% (gzip)
spa loader 57.88 kB / 19.7 kB (gzip) 58.29 kB / 19.8 kB (gzip) 0.7% / 0.52% (gzip)
spa async-chunk 114.67 kB / 34.76 kB (gzip) 115.53 kB / 34.96 kB (gzip) 0.75% / 0.57% (gzip)

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 48.64865% with 19 lines in your changes missing coverage. Please review.

Project coverage is 89.17%. Comparing base (e00a469) to head (53121b3).

Files with missing lines Patch % Lines
src/features/generic_events/aggregate/index.js 42.30% 9 Missing and 6 partials ⚠️
src/features/generic_events/instrument/index.js 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1257      +/-   ##
==========================================
- Coverage   89.25%   89.17%   -0.08%     
==========================================
  Files         170      170              
  Lines        7326     7329       +3     
  Branches     1476     1480       +4     
==========================================
- Hits         6539     6536       -3     
- Misses        667      672       +5     
- Partials      120      121       +1     
Flag Coverage Δ
unit-tests 79.91% <48.64%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link

github-actions bot commented Nov 19, 2024

Static Badge

Last ran on November 20, 2024 11:56:51 CST
Checking merge of (8dc4ce7) into main (0823840)

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.

1 participant