Skip to content

Commit d14aab7

Browse files
authored
structural, wording, and styling changes (#5946)
* structural, wording, and editing changes * wording edit * final cleanup
1 parent d6adadf commit d14aab7

File tree

6 files changed

+57
-54
lines changed

6 files changed

+57
-54
lines changed

src/docs/product/session-replay/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
title: "Session Replay"
33
sidebar_order: 3
4-
description: "Session Replay"
4+
description: "Learn about Sentry's Session Replay, which provides video-like reproductions of user interactions on a site or web app."
55
---
66

77
<Note>
88

99
Session Replay is currently in beta. Beta features are still in-progress and may have bugs. We recognize the irony. If you have any questions or feedback, please email us at [[email protected]](mailto:[email protected]).
1010

1111
**Currently, this feature is supported for only browser JavaScript, including these frameworks:**
12+
1213
- Angular
1314
- Ember
1415
- Gatsby
@@ -20,7 +21,7 @@ Session Replay is currently in beta. Beta features are still in-progress and may
2021

2122
</Note>
2223

23-
Get to the root cause of an error or latency issue faster by seeing all the technical details related to that issue in one visual replay on your web application.
24+
Get to the root cause of an error or latency issue faster by seeing all the technical details related to that issue in one visual replay on your web application. **Session Replay** provides a video-like reproduction of user interactions on a site or web app. All user interactions — including page visits, mouse movements, clicks, and scrolls — are captured, helping developers connect the dots between a known issue and how a user experienced it in the UI.
2425

2526
## Join the Session Replay Waitlist
2627

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
To set up the integration, add the following to your Sentry initialization. Several options are supported and passable via the integration constructor. See the [configuration sections](/platforms/javascript/session-replay/) for more details.
1+
To set up the integration, add the following to your Sentry initialization. Several options are supported and passable using the integration constructor. See the [configuration documentation](/platforms/javascript/session-replay/configuration/) for more details.
22

33
```javascript {tabTitle: ESM}
4-
// import Sentry from your framework SDK (e.g. @sentry/react) instead of @sentry/browser
4+
// import Sentry from your framework SDK (e.g. @sentry/react) instead of @sentry/browser
55
import * as Sentry from "@sentry/browser";
66

77
import { Replay } from "@sentry/replay";
@@ -21,9 +21,9 @@ Sentry.init({
2121
new Replay({
2222
// Additional SDK configuration goes in here, for example:
2323
maskAllText: true,
24-
blockAllMedia: true
24+
blockAllMedia: true,
2525
// See below for all available options
26-
})
26+
}),
2727
],
2828
});
2929
```
@@ -44,9 +44,9 @@ Sentry.init({
4444
new Sentry.Integrations.Replay({
4545
// Additional SDK configuration goes in here, for example:
4646
maskAllText: true,
47-
blockAllMedia: true
47+
blockAllMedia: true,
4848
// See below for all available options
49-
})
49+
}),
5050
],
5151
});
5252
```
@@ -56,4 +56,4 @@ You can verify that with the following:
5656

5757
```javascript
5858
myUndefinedFunction();
59-
```
59+
```

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Configuration
3-
sidebar_order: 410
3+
sidebar_order: 4100
44
notSupported:
55
- javascript.capacitor
66
- javascript.cordova
@@ -15,25 +15,25 @@ description: "Learn about the general Session Replay configuration fields."
1515

1616
The following options can be configured on the root level of your browser-based Sentry SDK, in `init({})`:
1717

18-
| key | type | default | description |
19-
| ------------------------ | ------- | ------- | --- |
20-
| replaysSessionSampleRate | number | `0.1` | The sample rate for replays that begin recording immediately and last the entirety of the user's session. 1.0 will collect all replays, 0 will collect no replays. |
21-
| replaysOnErrorSampleRate | number | `1.0` | The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends. 1.0 capturing all sessions with an error, and 0 capturing none. |
18+
| Key | Type | Default | Description |
19+
| ------------------------ | ------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20+
| replaysSessionSampleRate | number | `0.1` | The sample rate for replays that begin recording immediately and last the entirety of the user's session. `1.0` collects all replays, and `0` collects none. |
21+
| replaysOnErrorSampleRate | number | `1.0` | The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends. `1.0` captures all sessions with an error, and `0` captures none. |
2222

2323
The following options can be configured as options to the integration, in `new Replay({})`:
2424

25-
| key | type | default | description |
26-
| ------------------- | ------- | ------- | --- |
27-
| stickySession | boolean | `true` | Keep track of the user across page loads. Note a single user using multiple tabs will result in multiple sessions. Closing a tab will result in the session being closed as well. |
25+
| Key | Type | Default | Description |
26+
| ------------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27+
| stickySession | boolean | `true` | Keep track of the user across page loads. Note, a single user using multiple tabs will result in multiple sessions. Closing a tab will result in the session being closed as well. |
2828

2929
## Optimization Configuration
3030

3131
The following options can be configured as options to the integration, in `new Replay({})`:
3232

33-
| key | type | default | description |
34-
| ---------------- | ----------------------- | ------- | --- |
35-
| collectFonts | boolean | `false` | Should collect fonts used on the website |
36-
| inlineImages | boolean | `false` | Should inline `<image>` content |
33+
| Key | Type | Default | Description |
34+
| ---------------- | ------- | ------- | ----------------------------------------------- |
35+
| collectFonts | boolean | `false` | Should collect fonts used on the website |
36+
| inlineImages | boolean | `false` | Should inline `<image>` content |
3737
| inlineStylesheet | boolean | `true` | Should inline stylesheets used in the recording |
3838

3939
## Identifying Users
@@ -76,4 +76,4 @@ replay.stop(); // Stop recording
7676

7777
## Privacy
7878

79-
We take privacy seriously so we provide a number of privacy-oriented settings. Learn more about these in our our<PlatformLink to="/session-replay/privacy/#privacy-configuration">Session Replay privacy documentation</PlatformLink>.
79+
We take privacy seriously, so we provide a number of privacy-oriented settings. Learn more about these in our our <PlatformLink to="/session-replay/privacy/#privacy-configuration">Session Replay privacy documentation</PlatformLink>.

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,43 @@ redirect_from:
2525

2626
<Include name="beta-note-session-replay.mdx" />
2727

28-
With [session replays](/product/session-replay/) you can get to the root cause of an error or latency issue faster by seeing all the technical details related to that issue in one visual replay on your web application. Sentry provides a video-like reproduction of user interactions on a site or web app. All user interactions - including page visits, mouse movements, clicks, and scrolls - are captured, helping developers connect the dots between a known issue and how a user experienced it in the UI.
28+
With [session replays](/product/session-replay/) you can get to the root cause of an error or latency issue faster by seeing all the technical details related to that issue in one visual replay on your web application. Sentry provides a video-like reproduction of user interactions on a site or web app. All user interactions including page visits, mouse movements, clicks, and scrolls are captured, helping developers connect the dots between a known issue and how a user experienced it in the UI.
2929

3030
By default, it'll mask all fields, so no personally identifiable information (PII) is collected, eliminating any concerns with General Data Protection Regulation (GDPR). Learn more on <PlatformLink to="/session-replay/privacy">Session Replay Privacy</PlatformLink>.
3131

3232
## Pre-requisites
3333

34-
For the sentry-replay integration to work, you must have the [Sentry browser SDK package](https://www.npmjs.com/package/@sentry/browser), or an equivalent framework SDK (e.g. [@sentry/react](https://www.npmjs.com/package/@sentry/react)) installed. The minimum version required for the SDK is `7.24.0`.
34+
For the sentry-replay integration to work, you must have the [Sentry browser SDK package](https://www.npmjs.com/package/@sentry/browser), or an equivalent framework SDK (for example, [@sentry/react](https://www.npmjs.com/package/@sentry/react)) installed. The minimum version required for the SDK is `7.24.0`.
3535

36-
Make sure to use the exact same version of `@sentry/replay` as your other Sentry package(s), e.g. `@sentry/browser` or `@sentry/react`.
36+
Make sure to use the exact same version of `@sentry/replay` as your other Sentry package(s), such as `@sentry/browser` or `@sentry/react`.
3737

3838
`@sentry/replay` requires Node 12+, and browsers newer than IE11.
3939

40-
## Installation
40+
## Install
4141

42-
<PlatformContent includePath="session-replay/install-session-replay" />
42+
<PlatformContent includePath="session-replay/install" />
4343

44-
## Set up
44+
## Set Up
4545

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

4848
## User Session
4949

5050
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

54-
An 'interaction' refers to either a mouse click or a browser navigation event.
54+
An _interaction_ refers to either a mouse click or a browser navigation event.
5555

5656
</Note>
5757

58-
### Replay Captures Only on Errors
58+
### Replay Captures on Errors Only
5959

6060
Alternatively, rather than recording an entire session, you can capture a replay only when an error occurs. In this case, the integration will buffer up to one minute worth of events prior to the error being thrown. It will continue to record the session following the rules above regarding session life and activity. Read the [sampling](#sampling) section for configuration options.
6161

6262
## Sampling
6363

64-
Sampling allows you to control how much of your website's traffic will result in a Session Replay. There are two sample rates you can adjust to get the replays more relevant to your interests:
64+
Sampling allows you to control how much of your website's traffic will result in a session replay. There are two sample rates you can adjust to get the replays relevant to your interests:
6565

6666
1. <PlatformIdentifier name="replays-session-sample-rate" /> - The sample rate for replays that begin recording immediately and last the entirety of the user's session.
6767
2. <PlatformIdentifier name="replays-on-error-sample-rate" /> - The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends.
@@ -70,14 +70,14 @@ Sampling occurs when the session is first started. <PlatformIdentifier name="rep
7070

7171
## Error Linking
7272

73-
Currently, errors that happen on the page while a replay is running are linked to the Replay, making it as easy as possible to jump between related issues/replays. However, please note that it is __possible__ that the error count reported on the Replay Detail page does not match the actual errors that have been captured. The reason for that is that errors can be lost, e.g. a network request fails, or similar. This should not happen to often, but be aware that it is theoretically possible.
73+
Currently, errors that happen on the page while a replay is running are linked to the Replay, making it as easy as possible to jump between related issues and replays. However, it is **possible** that the error count reported on the **Replays Details** page does not match the actual errors that have been captured. This is because errors can be lost; for example, a network request may fail or similar. This shouldn't happen often, but it's theoretically possible.
7474

7575
## Verify
7676

7777
While you're testing, set <PlatformIdentifier name="replays-session-sample-rate" /> to `1.0`, as that ensures that every user session will be sent to Sentry.
7878

7979
Once testing is complete, **we recommend lowering this value in production**. We still recommend keeping <PlatformIdentifier name="replays-on-error-sample-rate" /> set to `1.0`.
8080

81-
**Next Steps:**
81+
## Next Steps
8282

8383
<PageGrid />

0 commit comments

Comments
 (0)