From 0a97041cf3427d37faef57482370c9fb2811cf52 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 26 Oct 2023 09:16:34 +0100 Subject: [PATCH] fix: checkout every X minutes --- src/__tests__/extensions/replay/sessionrecording.test.ts | 2 -- src/extensions/replay/sessionrecording.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/__tests__/extensions/replay/sessionrecording.test.ts b/src/__tests__/extensions/replay/sessionrecording.test.ts index a11069bfe..3427136cf 100644 --- a/src/__tests__/extensions/replay/sessionrecording.test.ts +++ b/src/__tests__/extensions/replay/sessionrecording.test.ts @@ -18,7 +18,6 @@ import { RECORDING_IDLE_ACTIVITY_TIMEOUT_MS, RECORDING_MAX_EVENT_SIZE, SessionRecording, - TEN_MINUTES_IN_MS, } from '../../../extensions/replay/sessionrecording' // Type and source defined here designate a non-user-generated recording event @@ -400,7 +399,6 @@ describe('SessionRecording', () => { plugins: [], inlineStylesheet: true, recordCrossOriginIframes: false, - checkoutEveryNms: TEN_MINUTES_IN_MS, }) }) diff --git a/src/extensions/replay/sessionrecording.ts b/src/extensions/replay/sessionrecording.ts index f5046ddd8..15b3aae62 100644 --- a/src/extensions/replay/sessionrecording.ts +++ b/src/extensions/replay/sessionrecording.ts @@ -32,7 +32,6 @@ import { const BASE_ENDPOINT = '/s/' export const RECORDING_IDLE_ACTIVITY_TIMEOUT_MS = 5 * 60 * 1000 // 5 minutes -export const TEN_MINUTES_IN_MS = 10 * 60 * 1000 export const RECORDING_MAX_EVENT_SIZE = 1024 * 1024 * 0.9 // ~1mb (with some wiggle room) export const RECORDING_BUFFER_TIMEOUT = 2000 // 2 seconds export const SESSION_RECORDING_BATCH_KEY = 'recordings' @@ -435,8 +434,6 @@ export class SessionRecording { collectFonts: false, inlineStylesheet: true, recordCrossOriginIframes: false, - //take a full snapshot after every N ms - checkoutEveryNms: TEN_MINUTES_IN_MS, } // We switched from loading all of rrweb to just the record part, but // keep backwards compatibility if someone hasn't upgraded PostHog