Configure sampling rates
0 through 100:
sessionSampleRatecontrols whether the SDK reports a session and associated RUM events. The default is100.sessionReplaySampleRateapplies only after the session is sampled. The default is0.
25% × 20%).
Calling
startSessionReplayRecording() can enable replay for the current sampled session, but the method
cannot promote a session excluded by sessionSampleRate.Choose initial values
These are starting points, not universal defaults. Estimate event volume, object storage, retention,
and the number of sessions needed for each browser and release before rollout.
Session boundaries
The SDK stores the decision insessionStorage. A new session starts after either boundary:
sessionInactivityTimeout: 30 minutes by default;maxSessionDuration: 4 hours by default.
molesignal_rum_session_<applicationId> session-storage entry when testing a
new configuration.
Bound client-side volume
Use transport controls to keep memory and request sizes predictable:Browser RUM SDK
Review all initialization options.
Session replay
Configure replay collection and storage-sensitive options.