-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Cloud] Fix sessions stitching across domains #103964
Conversation
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Josh Dover <[email protected]>
Co-authored-by: Josh Dover <[email protected]>
Summary
After some manual integration testing across the Cloud UI and Kibana UI, we have found that to make sessions merging across domains work properly, the
identify
call must happen in the same tick when the session recording script is initialized.This change slightly delays how fast we initialize the session recording script, but in my testing on Cloud staging this should only delay the recording in the 100ms range. Since this code executed before any UI should be shown anyways, this should be acceptable.
I ran the functional tests that are not yet enabled on CI and everything passed.
Checklist
Delete any items that are not applicable to this PR.