Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Sentry.init({
// See below for all available options
})
],
// ...
});
```

Expand All @@ -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();
```
4 changes: 2 additions & 2 deletions src/platforms/javascript/common/session-replay/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Make sure to use the exact same version of `@sentry/replay` as your other Sentry

<PlatformContent includePath="session-replay/setup-session-replay" />

## 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).

<Note>

Expand Down