Syntax
newrelic.pauseReplay()Browser API used to force a replay to pause recording.
Requirements
- Browser Pro, or Pro+SPA agent (v1.240.0 or higher)
Description
newrelic.pauseReplay() can be called to manually force a replay to pause recording.
If a replay is not already in progress, this API method will have no effect.
If the browser session is still valid, you can resume a paused replay by calling the newrelic.recordReplay() API method.
Use Cases
- You want to manually trigger a replay to stop recording on certain site pages or under certain conditions, such as a healthcare page, credit card info page, etc.
Examples
Forcing a replay to pause recording
newrelic.pauseReplay()Resuming a paused replay
newrelic.pauseReplay() newrelic.recordReplay()