@gonzitech/errly-replay
v0.1.2
Published
Session Replay for Errly error tracking
Downloads
35
Maintainers
Readme
@gonzitech/errly-replay
Session Replay for Errly — records DOM mutations and user interactions using rrweb and streams them to your Errly project.
Install
npm install @gonzitech/errly-replay rrwebUsage
import { setupErrlyReplay } from '@gonzitech/errly-replay';
setupErrlyReplay({
dsn: 'https://<key>@errly.gonzi.cloud/<projectId>',
});Call this once on app startup, after your error tracking init.
Options
| Option | Type | Default | Description |
|---|---|---|---|
| dsn | string | — | Your Errly project DSN |
| sessionSampleRate | number | 1.0 | Fraction of sessions to record (0.0–1.0) |
| maskAllText | boolean | false | Mask all text content in recordings |
| blockAllMedia | boolean | false | Block all images, video, audio and iframes |
| flushInterval | number | 5000 | How often to send chunks (ms) |
Example with sampling
setupErrlyReplay({
dsn: 'https://<key>@errly.gonzi.cloud/<projectId>',
sessionSampleRate: 0.1, // record 10% of sessions
maskAllText: true,
});Requirements
- Browser with
CompressionStreamsupport (all modern browsers) rrweb>= 2.0.0-alpha.20 as peer dependency
License
MIT — GonziTech
