diff --git a/src/platform-includes/session-replay/install-session-replay/javascript.mdx b/src/platform-includes/session-replay/install-session-replay/javascript.mdx index 115fd6e81601c..7555519790be1 100644 --- a/src/platform-includes/session-replay/install-session-replay/javascript.mdx +++ b/src/platform-includes/session-replay/install-session-replay/javascript.mdx @@ -1,4 +1,4 @@ -Install the Replay package with NPM or your favourite package manager. Alternatively, you can load the Replay integration via a CDN bundle. +Install the Replay package with the package manager of your choice. Alternatively, you can load the Replay integration using a CDN bundle: ```bash {tabTitle: ESM} # Make sure to have @sentry/browser or a Framework SDK (e.g. @sentry/react) installed diff --git a/src/platform-includes/session-replay/setup-session-replay/javascript.mdx b/src/platform-includes/session-replay/setup-session-replay/javascript.mdx index 001ed7246df84..ac2189cbe05be 100644 --- a/src/platform-includes/session-replay/setup-session-replay/javascript.mdx +++ b/src/platform-includes/session-replay/setup-session-replay/javascript.mdx @@ -25,7 +25,6 @@ Sentry.init({ // See below for all available options }) ], - // ... }); ``` @@ -49,6 +48,12 @@ Sentry.init({ // See below for all available options }) ], - // ... }); ``` + +With the settings above, session replays with errors are always captured. +You can verify that with the following: + +```javascript +myUndefinedFunction(); +``` \ No newline at end of file diff --git a/src/platforms/javascript/common/session-replay/index.mdx b/src/platforms/javascript/common/session-replay/index.mdx index 8a25d5fe46ee1..1ecdd2f29d145 100644 --- a/src/platforms/javascript/common/session-replay/index.mdx +++ b/src/platforms/javascript/common/session-replay/index.mdx @@ -39,9 +39,9 @@ Make sure to use the exact same version of `@sentry/replay` as your other Sentry -## Sessions +## User Session -A session starts when the Session Replay SDK is first loaded and initialized. The session will continue until 5 minutes passes without any user interactions with the application __OR__ until a maximum of 30 minutes have elapsed. Closing the browser tab will end the session immediately according to the rules for [SessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). +A user session starts when the Session Replay SDK is first loaded and initialized. The session will continue until five minutes passes without any user interactions with the application **or** until a maximum of 30 minutes have elapsed. Closing the browser tab will end the session immediately according to the rules for [SessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage).