-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [RUMF-997] dont take a FullSnapshot on view creation during session…
… renew (#1011) * [RUMF-997] add a SESSION_EXPIRED lifecycle event * 🐛 [RUMF-997] stop recording before renewing the session A full snapshot was incorrectly taken when renewing the session because `startRecording` is called before initializing the recorder. So when a session is renewed, we first create a new view then we stop recording: ``` notify SESSION_RENEWED -> notify VIEW_CREATED (trackViews) -> takeFullSnapshot() (startRecording) -> stopRecording() (recorderApi) -> startRecording() (recorderApi) ``` This commit uses the newly introduced lifecycle event triggered before SESSION_RENEWED to stop recording when the session is expired: ``` notify SESSION_EXPIRED -> stopRecording() notify SESSION_RENEWED -> notify VIEW_CREATED -> (nothing happens since recording is stopped) -> startRecording() ``` * ✅ [RUMF-997] add a e2e test to ensure a single fullsnapshot is taken when renewing the session * ✅ adjust test for new lifecycle event
- Loading branch information
1 parent
89bf272
commit 636989e
Showing
6 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters