Skip to content

RUMM-2685 Start/Stop Session recording based on the RUM session state#1122

Merged
mariusc83 merged 1 commit into
feature/sdkv2from
mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context
Nov 4, 2022
Merged

RUMM-2685 Start/Stop Session recording based on the RUM session state#1122
mariusc83 merged 1 commit into
feature/sdkv2from
mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context

Conversation

@mariusc83

@mariusc83 mariusc83 commented Nov 2, 2022

Copy link
Copy Markdown
Member

What does this PR do?

In this PR we are making sure that the Session recording is being stopped/resumed according with the RUM session state: tracked or not tracked.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@mariusc83 mariusc83 self-assigned this Nov 2, 2022
@mariusc83
mariusc83 force-pushed the mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context branch from 830ffab to 2a00173 Compare November 3, 2022 08:49
@mariusc83
mariusc83 marked this pull request as ready for review November 3, 2022 08:51
@mariusc83
mariusc83 requested a review from a team as a code owner November 3, 2022 08:51
@xgouchet xgouchet added the size-large This PR is large sized label Nov 3, 2022
whenever(mockParentScope.getRumContext()) doReturn fakeParentContext
whenever(mockChildScope.handleEvent(any(), any())) doReturn mockChildScope
whenever(mockSdkCore.getFeature(RumSessionScope.SESSION_REPLAY_FEATURE_NAME))
.thenReturn(mockSessionReplayFeatureScope)

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.

minor suggestion, just for the consistency

Suggested change
.thenReturn(mockSessionReplayFeatureScope)
doReturn mockSessionReplayFeatureScope

@mariusc83
mariusc83 force-pushed the mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context branch 2 times, most recently from ab2dea9 to bf2b68c Compare November 3, 2022 13:00
@mariusc83
mariusc83 force-pushed the mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context branch from bf2b68c to 986a16a Compare November 4, 2022 11:02
@mariusc83
mariusc83 force-pushed the mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context branch from 986a16a to 5a7e28b Compare November 4, 2022 13:07
@xgouchet xgouchet added the size-medium This PR is medium sized label Nov 4, 2022
@mariusc83
mariusc83 merged commit 5506ab9 into feature/sdkv2 Nov 4, 2022
@mariusc83
mariusc83 deleted the mconstantin/rumm-2685/pause-resume-session-replay-based-on-rum-context branch November 4, 2022 13:59
@xgouchet xgouchet added this to the 1.16.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-large This PR is large sized size-medium This PR is medium sized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants