File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,9 @@ yarn add @sentry/replay @sentry/browser @sentry/replay @sentry/tracing rrweb
24
24
25
25
## Setup
26
26
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.
28
29
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:
46
30
47
31
``` javascript
48
32
import * as Sentry from ' @sentry/browser' ;
@@ -53,12 +37,13 @@ Sentry.init({
53
37
dsn: ' __DSN__' ,
54
38
integrations: [
55
39
new SentryReplay ({
56
- // on by default
57
- maskAllInputs: false ,
40
+ stickySession: true , // Default is false
41
+ rrwebOptions: {
42
+ maskAllInputs: false , // Default is true
43
+ },
58
44
}),
59
45
],
60
46
// ...
61
47
});
62
48
```
63
49
64
- See the rrweb documentation for advice on configuring these values.
You can’t perform that action at this time.
0 commit comments