Package Exports
- @sentry/replay
- @sentry/replay/dist/index.es.js
- @sentry/replay/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sentry/replay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sentry-replay
This integration is a WIP.
Pre-Requisites
For the sentry-replay integration to work, you must have the Sentry browser SDK package and the rrweb package installed.
Installation
To install the stable version:
with npm:
npm install --save @sentry/browser @sentry/replay
with yarn:
yarn add @sentry/replay @sentry/browser @sentry/replay
Setup
To set up the integration add the following to your Sentry initialization. Several options are supported and passable via the integration constructor. See the rrweb documentation for advice on configuring these values.
import * as Sentry from '@sentry/browser';
import { SentryReplay } from '@sentry/replay';
Sentry.init({
dsn: '__DSN__',
integrations: [
new SentryReplay({
stickySession: true, // Default is false
rrwebConfig: {
maskAllInputs: false, // Default is true
},
}),
],
// ...
});