SessionRecordingPersistedConfig
Properties
| Name | Type |
|---|---|
version | 1 | 2 |
Config version - defaults to 1 (legacy). When version is 2, triggerGroups is used instead of individual trigger fields. | |
endpoint | string |
consoleLogRecordingEnabled | boolean |
linkedFlag | string | FlagVariant |
masking | Pick<SessionRecordingOptions, "maskAllInputs" | "maskTextSelector" | "blockSelector" | "maskAllElementAttributes"> |
urlTriggers | SessionRecordingUrlTrigger[] |
scriptConfig | { script?: string | undefined; } |
urlBlocklist | SessionRecordingUrlTrigger[] |
eventTriggers | string[] |
triggerMatchType | "any" | "all" |
Controls how event, URL, sampling, and linked flag triggers are combined.
| |
triggerGroups | SessionRecordingTriggerGroup[] |
V2 Trigger Groups - multiple named trigger groups with their own conditions and sample rates. Only used when version === 2. | |
cache_timestamp | number |
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. | |
enabled | boolean |
networkPayloadCapture | Pick<NetworkRecordOptions, "recordBody" | "recordHeaders"> & { capturePerformance: RemoteConfig["capturePerformance"]; } |
canvasRecording | { enabled: SessionRecordingRemoteConfig["recordCanvas"]; fps: SessionRecordingRemoteConfig["canvasFps"]; quality: SessionRecordingRemoteConfig["canvasQuality"]; } |
sampleRate | number |
minimumDurationMilliseconds | number |