Skip to content

Implement configurable throttling on mutation emission - #1694

Closed
eoghanmurray wants to merge 3 commits into
rrweb-io:mainfrom
eoghanmurray:sampling-mutation
Closed

eoghanmurray wants to merge 3 commits into
rrweb-io:mainfrom
eoghanmurray:sampling-mutation

Conversation

@eoghanmurray

Copy link
Copy Markdown
Collaborator

using the new sampling.mutation ms setting

  • can prevent overly frequent (javascript based) animation per second on the same attribute; the mutation buffer will emit a single change at the end if throttled changes are against the same element

@changeset-bot

changeset-bot Bot commented May 27, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b45bdaf

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

This PR includes changesets to release 22 packages
Name Type
rrweb Patch
@rrweb/record Patch
@rrweb/types Patch
@rrweb/all Patch
@rrweb/browser-client Patch
@rrweb/packer Patch
@rrweb/replay Patch
rrdom-nodejs Patch
rrdom Patch
rrvideo Patch
rrweb-player Patch
rrweb-snapshot Patch
@rrweb/utils Patch
@rrweb/web-extension Patch
@rrweb/rrweb-plugin-canvas-webrtc-record Patch
@rrweb/rrweb-plugin-canvas-webrtc-replay Patch
@rrweb/rrweb-plugin-console-record Patch
@rrweb/rrweb-plugin-console-replay Patch
@rrweb/rrweb-plugin-network-record Patch
@rrweb/rrweb-plugin-network-replay Patch
@rrweb/rrweb-plugin-sequential-id-record Patch
@rrweb/rrweb-plugin-sequential-id-replay 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

eoghanmurray added a commit to Deep-Prediction/rrweb that referenced this pull request May 27, 2025
…`sampling.mutation` ms setting

 - can prevent overly frequent (javascript based) animation per second on the same attribute; the mutation buffer will emit a single change at the end if throttled changes are against the same element

See upstream rrweb-io#1694
…`sampling.mutation` ms setting

 - can prevent overly frequent (javascript based) animation per second on the same attribute; the mutation buffer will emit a single change at the end if throttled changes are against the same element
@pkg-pr-new

pkg-pr-new Bot commented Sep 9, 2026

Copy link
Copy Markdown
@rrweb/all

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/all@b45bdaf

@rrweb/browser-client

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/browser-client@b45bdaf

@rrweb/packer

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/packer@b45bdaf

@rrweb/record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/record@b45bdaf

@rrweb/replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/replay@b45bdaf

rrdom

npm i https://pkg.pr.new/rrweb-io/rrweb/rrdom@b45bdaf

rrdom-nodejs

npm i https://pkg.pr.new/rrweb-io/rrweb/rrdom-nodejs@b45bdaf

rrvideo

npm i https://pkg.pr.new/rrweb-io/rrweb/rrvideo@b45bdaf

rrweb

npm i https://pkg.pr.new/rrweb-io/rrweb@b45bdaf

rrweb-player

npm i https://pkg.pr.new/rrweb-io/rrweb/rrweb-player@b45bdaf

rrweb-snapshot

npm i https://pkg.pr.new/rrweb-io/rrweb/rrweb-snapshot@b45bdaf

@rrweb/types

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/types@b45bdaf

@rrweb/utils

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/utils@b45bdaf

@rrweb/rrweb-plugin-canvas-webrtc-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-canvas-webrtc-record@b45bdaf

@rrweb/rrweb-plugin-canvas-webrtc-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-canvas-webrtc-replay@b45bdaf

@rrweb/rrweb-plugin-console-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-console-record@b45bdaf

@rrweb/rrweb-plugin-console-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-console-replay@b45bdaf

@rrweb/rrweb-plugin-network-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-network-record@b45bdaf

@rrweb/rrweb-plugin-network-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-network-replay@b45bdaf

@rrweb/rrweb-plugin-sequential-id-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-sequential-id-record@b45bdaf

@rrweb/rrweb-plugin-sequential-id-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-sequential-id-replay@b45bdaf

commit: b45bdaf

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Changes

Size change: +2.25 kB (+0.02%) | Total size: 10431.29 kB

all - 1975.72 kB -> 1976.29 kB (+577 B (+0.03%))
File Base PR Diff
all.cjs 567.91 kB 568.06 kB +158 B (+0.03%)
all.js 567.58 kB 567.73 kB +158 B (+0.03%)
all.umd.cjs 571.12 kB 571.27 kB +158 B (+0.03%)
all.umd.min.cjs 269.12 kB 269.22 kB +103 B (+0.04%)
browser-client - 670.07 kB -> 670.63 kB (+577 B (+0.08%))
File Base PR Diff
browser-client.cjs 192.15 kB 192.30 kB +158 B (+0.08%)
browser-client.js 191.92 kB 192.07 kB +158 B (+0.08%)
browser-client.umd.cjs 194.97 kB 195.12 kB +158 B (+0.08%)
browser-client.umd.min.cjs 91.03 kB 91.13 kB +103 B (+0.11%)
record - 552.68 kB -> 553.25 kB (+577 B (+0.10%))
File Base PR Diff
record.cjs 158.46 kB 158.62 kB +158 B (+0.10%)
record.js 158.38 kB 158.53 kB +158 B (+0.10%)
record.umd.cjs 159.79 kB 159.94 kB +158 B (+0.10%)
record.umd.min.cjs 76.05 kB 76.16 kB +103 B (+0.13%)
rrweb - 1913.90 kB -> 1914.47 kB (+577 B (+0.03%))
File Base PR Diff
rrweb.cjs 551.07 kB 551.23 kB +158 B (+0.03%)
rrweb.js 550.77 kB 550.92 kB +158 B (+0.03%)
rrweb.umd.cjs 552.29 kB 552.44 kB +158 B (+0.03%)
rrweb.umd.min.cjs 259.77 kB 259.88 kB +103 B (+0.04%)

@eoghanmurray

Copy link
Copy Markdown
Collaborator Author

#1933 supersedes

eoghanmurray added a commit that referenced this pull request Sep 21, 2026
… attributes/textContent on a per-element basis rather than globally (so a noisy element can't delay a well behaved one)
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