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: set the session id as soon as it changes #956

Merged
merged 8 commits into from
Jan 11, 2024

Conversation

pauldambra
Copy link
Member

We've a bug where the full snapshot is missing at the start of some recordings.

I think this fixes it - certainly resetting sessions locally I couldn't get it to trigger any more.

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Jan 10, 2024
@pauldambra pauldambra requested a review from a team January 10, 2024 22:04
Copy link

github-actions bot commented Jan 10, 2024

Size Change: -36 B (0%)

Total Size: 756 kB

Filename Size Change
dist/array.full.js 177 kB -9 B (0%)
dist/array.js 118 kB -9 B (0%)
dist/es.js 118 kB -9 B (0%)
dist/module.js 119 kB -9 B (0%)
ℹ️ View Unchanged
Filename Size
dist/exception-autocapture.js 12 kB
dist/recorder-v2.js 104 kB
dist/recorder.js 58.4 kB
dist/surveys.js 48.7 kB

compressed-size-action

@@ -406,7 +407,7 @@ export class SessionRecording {
reason: 'user activity',
type: event.type,
})
this._tryTakeFullSnapshot()
returningFromIdle = true
Copy link
Member Author

@pauldambra pauldambra Jan 11, 2024

Choose a reason for hiding this comment

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

as I added tracking of full snapshots in the tests it became clear there were routes through the code where we might take two full snapshots

(despite this change being about avoiding taking none full snapshots I tidied this up at the same time)

@pauldambra pauldambra merged commit 5a0e609 into master Jan 11, 2024
13 checks passed
@pauldambra pauldambra deleted the fix/order-of-snapshots branch January 11, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants