@sentry/replay
Advanced tools
Comparing version 0.5.17 to 0.5.18
@@ -69,3 +69,3 @@ /// <reference types="lodash" /> | ||
session: Session | undefined; | ||
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: SentryReplayConfiguration); | ||
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, maskAllText, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: SentryReplayConfiguration); | ||
/** | ||
@@ -72,0 +72,0 @@ * Because we create a transaction in `setupOnce`, we can potentially create a |
@@ -64,2 +64,6 @@ import { record } from 'rrweb'; | ||
replaysSamplingRate?: number; | ||
/** | ||
* Mask all text in recordings. All text will be replaced with asterisks by default. | ||
*/ | ||
maskAllText?: boolean; | ||
} | ||
@@ -66,0 +70,0 @@ export interface SentryReplayConfiguration extends SentryReplayPluginOptions { |
{ | ||
"name": "@sentry/replay", | ||
"version": "0.5.17", | ||
"version": "0.5.18", | ||
"description": "User replays for Sentry", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -39,3 +39,3 @@ # sentry-replay | ||
new SentryReplay({ | ||
stickySession: false, // Default is true | ||
maskAllText: true, // Will mask all text strings | ||
recordingConfig: { | ||
@@ -70,6 +70,7 @@ maskAllInputs: false, // Default is true | ||
| `initialFlushDelay` | `number` | `5000` | The amount of time to wait (in ms) before sending the initial recording payload. This helps drop recordings where users visit and close the page quickly. | | ||
| `maskAllText` | `boolean` | `false` | Mask *all* text strings with `*`. | | ||
| `replaysSamplingRate` | `number` | `1.0` | The rate at which to sample replays. (1.0 will collect all replays, 0 will collect no replays). | | ||
| `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. | | ||
| `useCompression` | `boolean` | `true` | Uses `WebWorkers` (if available) to compress the recording payload before uploading to Sentry. | | ||
| `captureOnlyOnError` | `boolean` | `false` | Only capture the recording when an error happens. | | ||
| `replaysSamplingRate` | `number` | `1.0` | The rate at which to sample replays. (1.0 will collect all replays, 0 will collect no replays). | | ||
| `recordingConfig.maskAllInputs` | `boolean` | `true` | Mask all `<input>` elements | | ||
@@ -76,0 +77,0 @@ | `recordingConfig.blockClass` | `string` | `'sr-block'` | Redact all elements with the class name `sr-block` | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
471086
87
5205
78