Network recording is off by default. Enabling it records resource URLs and
timing data. Headers and bodies are not recorded unless you opt in through
networkOptions.
networkOptions is passed to rrweb’s network plugin and has no effect unless
recordNetwork is true. Return nothing from transformRequestFn to drop a
request. recordHeaders, recordBody, and recordInitialRequests can also be
set there; redact sensitive data before enabling headers or bodies.
Requests to FastStats collection endpoints, including a custom baseUrl, are
always excluded.
transformRequestFn is a function, so it cannot be set from nuxt.config.
Replay events are buffered in the browser and uploaded in gzip-compressed
batches. The recorder also flushes when the page is hidden, when the session
rotates, and when a batch reaches its event or byte limit.
Option
Type
Default
Description
flushInterval
number
5000
Milliseconds between uploads
maxEvents
number
1000
Events per batch before an early flush
maxBatchSizeBytes
number
921600
Batch size before an early flush
maxLowLatencyBatchSizeBytes
number
57344
Batch size for the final upload when a recording ends
maxPendingBatches
number
30
Batches that may wait for upload
maxQueueSizeBytes
number
2097152
Memory limit for buffered replay data
minReplayLengthMs
number
3000
Recordings shorter than this are discarded
checkoutEveryNms
number
300000
Milliseconds between full DOM snapshots
checkoutEveryNth
number
none
Events between full DOM snapshots
compress
boolean
true
Gzips batches when the browser supports CompressionStream
When a recording ends, for example because the page is closed, the remaining
events are sent uncompressed in batches of at most
maxLowLatencyBatchSizeBytes so they fit in a request that outlives the page.
This option can only be lowered from its default.
If the queue limits are reached, capture stops for that recording instead of
leaving a gap.
sampling and slimDOMOptions are passed to rrweb and default to throttled
mouse movement and scroll events and a DOM snapshot without scripts, comments,
and non-essential <head> metadata.
mutationThrottle limits attribute changes on a single node so an animation
that rewrites the same element many times a second does not bloat the recording.
Replay follows your consent setup. Setting consent to "denied" stops the
recorder and discards buffered events. Switching between "anonymous" and
"granted" drops what is buffered and starts a new recording, so the two modes
never share one. In anonymous and cookieless mode recordings are not linked to
an anonymous visitor. See Consent and Cookieless.