Skip to content

Commit 275a5ac

Browse files
authored
Update README.md
1 parent 360e637 commit 275a5ac

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

README.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,9 @@ yarn add @sentry/replay @sentry/browser @sentry/replay @sentry/tracing rrweb
2424

2525
## Setup
2626

27-
To set up the integration add the following to your Sentry initialization:
27+
To set up the integration add the following to your Sentry initialization. Several options are supported and passable via the integration constructor.
28+
See the rrweb documentation for advice on configuring these values.
2829

29-
```javascript
30-
import * as Sentry from '@sentry/browser';
31-
import { SentryReplay } from '@sentry/replay';
32-
import '@sentry/tracing';
33-
34-
Sentry.init({
35-
dsn: '__DSN__',
36-
integrations: [
37-
new SentryReplay({
38-
// ...options
39-
}),
40-
],
41-
// ...
42-
});
43-
```
44-
45-
Several options are supported and passable via the integration constructor:
4630

4731
```javascript
4832
import * as Sentry from '@sentry/browser';
@@ -53,12 +37,13 @@ Sentry.init({
5337
dsn: '__DSN__',
5438
integrations: [
5539
new SentryReplay({
56-
// on by default
57-
maskAllInputs: false,
40+
stickySession: true, // Default is false
41+
rrwebOptions: {
42+
maskAllInputs: false, // Default is true
43+
},
5844
}),
5945
],
6046
// ...
6147
});
6248
```
6349

64-
See the rrweb documentation for advice on configuring these values.

0 commit comments

Comments
 (0)