Managing Bulk Shadow DOMs
If a significant number of shadows (more than a hundred) are captured, the replay service cannot replay the session.
You will see a message that session has no pages or you the screen is blank. This happens because the request is not getting decrypted at DNCA.
As a workaround, in 12.2.4, we have introduced a configuration named
splitShadowCaptureBySize. If you configure a value of 100 for the
splitShadowCaptureBySize parameter, the system splits the shadows
across multiple messages.
If you have 350 messages, the initial full DOM payload sends the first 100 shadow DOMs, followed immediately by DOM Diff messages containing the remaining shadow DOMs in batches of 100 until all have been sent.
To avoid seeing invalid messages or a blank screen, ensure that you configure the
splitShadowCaptureBySize parameter with an appropriate value so
that the shadows are split. If you do not configure the
splitShadowCaptureBySize parameter, the existing behavior
continues.
splitShadowCaptureBySize parameter as
follows:domCapture: {
…
options: {
splitShadowCaptureBySize: 100
}
…
}