@sentry/replay 0.2.0-0 → 0.2.0-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,54 +13,37 @@ To install the stable version:
13
13
  with npm:
14
14
 
15
15
  ```shell
16
- npm install --save @sentry/replay rrweb
16
+ npm install --save @sentry/browser @sentry/replay @sentry/tracing rrweb
17
17
  ```
18
18
 
19
19
  with yarn:
20
20
 
21
21
  ```shell
22
- yarn add @sentry/replay rrweb
22
+ yarn add @sentry/replay @sentry/browser @sentry/replay @sentry/tracing rrweb
23
23
  ```
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
-
33
- Sentry.init({
34
- dsn: '__DSN__',
35
- integrations: [
36
- new SentryReplay({
37
- // ...options
38
- }),
39
- ],
40
- // ...
41
- });
42
- ```
43
-
44
- Several options are supported and passable via the integration constructor:
45
30
 
46
31
  ```javascript
47
32
  import * as Sentry from '@sentry/browser';
48
33
  import { SentryReplay } from '@sentry/replay';
34
+ import '@sentry/tracing';
49
35
 
50
36
  Sentry.init({
51
37
  dsn: '__DSN__',
52
38
  integrations: [
53
39
  new SentryReplay({
54
- // default is empty
55
- checkoutEveryNth: 100,
56
- // default is 5 minutes
57
- checkoutEveryNms: 15 * 60 * 1000,
58
- // on by default
59
- maskAllInputs: false,
40
+ stickySession: true, // Default is false
41
+ rrwebConfig: {
42
+ maskAllInputs: false, // Default is true
43
+ },
60
44
  }),
61
45
  ],
62
46
  // ...
63
47
  });
64
48
  ```
65
49
 
66
- See the rrweb documentation for advice on configuring these values.