-
Notifications
You must be signed in to change notification settings - Fork 44
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: recordReplay will restart replays on same session page loads #1093
Conversation
Asset Size Report
Merging this pull request will result in the following asset size changes:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1093 +/- ##
=======================================
Coverage 87.62% 87.62%
=======================================
Files 162 162
Lines 7249 7251 +2
Branches 1421 1422 +1
=======================================
+ Hits 6352 6354 +2
Misses 781 781
Partials 116 116
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Patch a case of recordReplay not restarting session replay. Customers can now programatically continue the session replay after a hard page navigation.
Overview
Change old smart-attempt logic to exclude SR agg from loading if existing session mode is off to always load as long as session entity itself was initialized and exists. This ensure the aggregate is around to listen for recordReplay calls which forces the start of replay regardless of existing session mode being off (as long as entitlements are valid).
Related Issue(s)
https://new-relic.atlassian.net/browse/NR-285311
Testing
Run new test file w/ old build; new test will fail with mode still being 0. Run it with PR build, new test passes with mode 1.