You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| replaysSampleRate | number |`0.1`| The sample rate for all sessions, which will capture the entirety from when a user begins a session until the session ends. (1.0 will collect all replays, 0 will collect no replays) |
109
+
| replaysOnErrorSampleRate | number | `1.0` | If a session isn't already being recorded via `replaysSampleRate`, based on `replaysOnErrorSampleRate` the SDK will send the captured replay when an error occurs. (1.0 capturing all sessions with an error, and 0 capturing none).
110
+
111
+
### General Integration Configuration
112
+
113
+
The following options can be configured as options to the integration, in `new Replay({})`:
| sessionSampleRate | number |`0.1`| The sample rate for all sessions, which will capture the entirety from when a user begins a session until the session ends. (1.0 will collect all replays, 0 will collect no replays) |
112
-
| errorSampleRate | number |`1.0`| If a session isn't already being recorded via `sessionSampleRate`, based on `errorSampleRate` the SDK will send the captured replay when an error occurs. (1.0 capturing all sessions with an error, and 0 capturing none). |
113
117
| 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. |
114
118
119
+
115
120
### Privacy Configuration
116
121
122
+
The following options can be configured as options to the integration, in `new Replay({})`:
| maskAllText | boolean |`true`| Mask _all_ text content. Will pass text content through `maskTextFn` before sending to server. |
@@ -126,16 +133,31 @@ Sampling occurs when the session is first started. `sessionSampleRate` is evalua
126
133
| blockSelector | string |`'[data-sentry-block]'`| Redact all elements that match the DOM selector. See [privacy](#blocking) section for an example. |
127
134
| ignoreClass | string \| RegExp |`'sentry-ignore'`| Ignores all events on the matching input field. See [privacy](#ignoring) section for an example. |
128
135
| maskTextClass | string \| RegExp |`'sentry-mask'`| Mask all elements that match the class name. See [privacy](#masking) section for an example. |
136
+
| maskTextSelector | string |`undefined`| Mask all elements that match the given DOM selector. See [privacy](#masking) section for an example. |
129
137
130
138
### Optimization Configuration
131
139
140
+
The following options can be configured as options to the integration, in `new Replay({})`:
| collectFonts | boolean |`false`| Should collect fonts used on the website |
135
145
| inlineImages | boolean |`false`| Should inline `<image>` content |
136
146
| inlineStylesheet | boolean |`true`| Should inline stylesheets used in the recording |
137
147
| recordCanvas | boolean |`false`| Should record `<canvas>` elements |
138
-
| slimDOMOptions | Record<string, boolean> |`{}`| Remove unnecessary parts of the DOM <br /> Available keys: `script, comment, headFavicon, headWhitespace, headMetaDescKeywords, headMetaSocial, headMetaRobots, headMetaHttpEquiv, headMetaAuthorship, headMetaVerification`|
148
+
149
+
150
+
### rrweb Configuration
151
+
152
+
In addition to the options described above, you can also directly pass configuration to [rrweb](https://github.com/rrweb-io/rrweb/blob/rrweb%401.1.3/guide.md), which is the underlying library used to make the recordings:
153
+
154
+
```js
155
+
newReplay({
156
+
157
+
// any further configuration here is passed directly to rrweb
158
+
});
159
+
```
160
+
139
161
140
162
## Privacy
141
163
There are several ways to deal with PII. By default, the integration will mask all text content with `*` and block all media elements (`img, svg, video, object, picture, embed, map, audio`). This can be disabled by setting `maskAllText` to `false`. It is also possible to add the following CSS classes to specific DOM elements to prevent recording its contents: `sentry-block`, `sentry-ignore`, and `sentry-mask`. The following sections will show examples of how content is handled by the differing methods.
0 commit comments