Skip to content

Commit c7dbe85

Browse files
replay: ref onboarding snippet (#5926)
* replay: ref onboarding snippet * Update src/platform-includes/session-replay/install-session-replay/javascript.mdx * from review * Apply suggestions from code review Co-authored-by: Isabel <[email protected]> Co-authored-by: Isabel <[email protected]>
1 parent f1d12d6 commit c7dbe85

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/platform-includes/session-replay/install-session-replay/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Install the Replay package with NPM or your favourite package manager. Alternatively, you can load the Replay integration via a CDN bundle.
1+
Install the Replay package with the package manager of your choice. Alternatively, you can load the Replay integration using a CDN bundle:
22

33
```bash {tabTitle: ESM}
44
# Make sure to have @sentry/browser or a Framework SDK (e.g. @sentry/react) installed

src/platform-includes/session-replay/setup-session-replay/javascript.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Sentry.init({
2525
// See below for all available options
2626
})
2727
],
28-
// ...
2928
});
3029
```
3130

@@ -49,6 +48,12 @@ Sentry.init({
4948
// See below for all available options
5049
})
5150
],
52-
// ...
5351
});
5452
```
53+
54+
With the settings above, session replays with errors are always captured.
55+
You can verify that with the following:
56+
57+
```javascript
58+
myUndefinedFunction();
59+
```

src/platforms/javascript/common/session-replay/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Make sure to use the exact same version of `@sentry/replay` as your other Sentry
4545

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

48-
## Sessions
48+
## User Session
4949

50-
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).
50+
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).
5151

5252
<Note>
5353

0 commit comments

Comments
 (0)