@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 +9 -26
- package/dist/index.es.js +485 -165
- package/dist/index.js +480 -161
- package/dist/index.js.map +1 -1
- package/dist/jest.config.d.ts +3 -0
- package/dist/rollup.config.d.ts +3 -0
- package/dist/src/createPerformanceEntry.d.ts +23 -0
- package/dist/src/flags.d.ts +2 -0
- package/dist/src/index.d.ts +120 -0
- package/dist/src/session/constants.d.ts +1 -0
- package/dist/src/session/createSession.d.ts +14 -0
- package/dist/src/session/createSession.test.d.ts +1 -0
- package/dist/src/session/fetchSession.d.ts +2 -0
- package/dist/src/session/fetchSession.test.d.ts +1 -0
- package/dist/src/session/getSession.d.ts +15 -0
- package/dist/src/session/getSession.test.d.ts +1 -0
- package/dist/src/session/index.d.ts +2 -0
- package/dist/src/session/saveSession.d.ts +2 -0
- package/dist/src/session/saveSession.test.d.ts +1 -0
- package/dist/src/session/types.d.ts +7 -0
- package/dist/src/session/updateSessionActivity.d.ts +3 -0
- package/dist/src/session/updateSessionActivity.test.d.ts +1 -0
- package/dist/src/util/isExpired.d.ts +5 -0
- package/dist/src/util/isExpired.test.d.ts +1 -0
- package/dist/src/util/isSessionExpired.d.ts +5 -0
- package/dist/src/util/isSessionExpired.test.d.ts +1 -0
- package/dist/src/util/logger.d.ts +6 -0
- package/dist/tests/index.spec.d.ts +1 -0
- package/package.json +9 -7
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
|
-
//
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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.
|