Skip to content

feat: Add rrweb replay config#255

Open
pulpdrew wants to merge 1 commit into
mainfrom
drew/rrweb-replay
Open

feat: Add rrweb replay config#255
pulpdrew wants to merge 1 commit into
mainfrom
drew/rrweb-replay

Conversation

@pulpdrew
Copy link
Copy Markdown
Contributor

@pulpdrew pulpdrew commented May 15, 2026

This PR adds a replay item to the HyperDX config which is passed through to rrweb, allowing for users to pass custom callbacks for DOM mutation events:

    HyperDX.init({
          apiKey,
          service,
          recordCanvas: true,
          replay: {
            hooks: {
              mutation() {
                console.log('DOM mutation observed');
              },
            },
          },
        });
Screen.Recording.2026-05-15.at.2.09.18.PM.mov

canvasMutation is available, but it appears rrweb 1.1.3 does not actually call the canvasMutation callback on all canvas events. A larger upgrade to rrweb v2 may be necessary to improve canvas support.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

🦋 Changeset detected

Latest commit: 4fd0551

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hyperdx/browser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pulpdrew pulpdrew force-pushed the drew/rrweb-replay branch from 253a297 to 4fd0551 Compare May 15, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant