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

fix: Disable session tracking when missing browser API #1140

Closed
wants to merge 2 commits into from

Conversation

patrickhousley
Copy link
Contributor

Disable session tracking when the browser is missing the PerformanceNavigationTiming api. This only happens with unsupported browsers and results in session trace data with the timing values in the wrong format.

Overview

If PerformanceNavigationTiming is not defined, in the case of old unsupported browsers, session tracking will be disabled.

Related Issue(s)

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

Testing

Copy link

github-actions bot commented Aug 7, 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 32.41 kB / 11.28 kB (gzip) 32.63 kB / 11.35 kB (gzip) 0.68% / 0.59% (gzip)
lite async-chunk 51.01 kB / 16.41 kB (gzip) 51.01 kB / 16.41 kB (gzip) 0% / 0% (gzip)
pro loader 53.44 kB / 18.01 kB (gzip) 53.66 kB / 18.07 kB (gzip) 0.42% / 0.29% (gzip)
pro async-chunk 97.68 kB / 29.27 kB (gzip) 97.58 kB / 29.26 kB (gzip) -0.11% / -0.05% (gzip)
spa loader 61.4 kB / 20.45 kB (gzip) 61.62 kB / 20.51 kB (gzip) 0.36% / 0.29% (gzip)
spa async-chunk 112.78 kB / 33.6 kB (gzip) 112.67 kB / 33.58 kB (gzip) -0.09% / -0.04% (gzip)

Copy link

github-actions bot commented Aug 7, 2024

Static Badge

Last ran on August 06, 2024 20:32:09 CDT
Checking merge of (c860d26) into main (86dde59)

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.73%. Comparing base (c527452) to head (e09af68).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1140      +/-   ##
==========================================
- Coverage   88.77%   88.73%   -0.05%     
==========================================
  Files         162      162              
  Lines        7306     7306              
  Branches     1451     1450       -1     
==========================================
- Hits         6486     6483       -3     
- Misses        716      719       +3     
  Partials      104      104              
Flag Coverage Δ
integration-tests 91.56% <80.00%> (-0.07%) ⬇️
unit-tests 79.13% <100.00%> (+0.02%) ⬆️

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

This affects session manager; it should only prevent traces & replay as discussed.

@patrickhousley
Copy link
Contributor Author

Closing in favor of #1142

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.

2 participants