Skip to content

RUM-4084 Synchronize SR info with webviews#1990

Merged
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-4084/sr_browser_sync
Apr 17, 2024
Merged

RUM-4084 Synchronize SR info with webviews#1990
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-4084/sr_browser_sync

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
@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