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

RUM-4084 Synchronize SR info with webviews #1990

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

xgouchet
Copy link
Member

What does this PR do?

This fixes some discrepancies between the Webview and host app content regarding Session Replay :

  • The _dd.session.plan field has been deprecated and should be removed
  • The session.has_replay and _dd.replay_stats fields should be discarded from the webview RUM event if SR is disable in the host application, to avoid orphan SR sessions

@xgouchet xgouchet requested review from a team as code owners April 17, 2024 07:50
@xgouchet xgouchet requested a review from maxep April 17, 2024 07:50
Comment on lines 47 to 50
if (!sessionReplayEnabled) {
// RUM-4084 disable webview SR if host app doesn't have SR
// dd.remove(DD_REPLAY_STATS)
}
Copy link
Member

Choose a reason for hiding this comment

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

Empty block. Should the line be uncommented?

@xgouchet xgouchet force-pushed the xgouchet/RUM-4084/sr_browser_sync branch from f9f810a to 45a56fa Compare April 17, 2024 08:40
@xgouchet xgouchet merged commit 55dfa48 into develop Apr 17, 2024
22 checks passed
@xgouchet xgouchet deleted the xgouchet/RUM-4084/sr_browser_sync branch April 17, 2024 09:22
@xgouchet xgouchet added this to the 2.9.X milestone Jul 31, 2024
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