SessionRecordingPersistedConfig

Properties

NameType
version1 | 2

Config version - defaults to 1 (legacy). When version is 2, triggerGroups is used instead of individual trigger fields.

endpointstring
consoleLogRecordingEnabledboolean
linkedFlagstring | FlagVariant
maskingPick<SessionRecordingOptions, "maskAllInputs" | "maskTextSelector" | "blockSelector" | "maskAllElementAttributes">
urlTriggersSessionRecordingUrlTrigger[]
scriptConfig{ script?: string | undefined; }
urlBlocklistSessionRecordingUrlTrigger[]
eventTriggersstring[]
triggerMatchType"any" | "all"

Controls how event, URL, sampling, and linked flag triggers are combined.

any means that if any of the triggers match, the session will be recorded. all means that all the triggers must match for the session to be recorded.

triggerGroupsSessionRecordingTriggerGroup[]

V2 Trigger Groups - multiple named trigger groups with their own conditions and sample rates. Only used when version === 2.

cache_timestampnumber

Used to determine if the persisted config is still valid or we need to wait for a new one only accepts undefined since older versions of the library didn't set this.

enabledboolean
networkPayloadCapturePick<NetworkRecordOptions, "recordBody" | "recordHeaders"> & { capturePerformance: RemoteConfig["capturePerformance"]; }
canvasRecording{ enabled: SessionRecordingRemoteConfig["recordCanvas"]; fps: SessionRecordingRemoteConfig["canvasFps"]; quality: SessionRecordingRemoteConfig["canvasQuality"]; }
sampleRatenumber
minimumDurationMillisecondsnumber