@@ -4,7 +4,7 @@ import { captureException, getCurrentHub } from '@sentry/core';
4
4
import type { Breadcrumb , ReplayRecordingMode } from '@sentry/types' ;
5
5
import { logger } from '@sentry/utils' ;
6
6
7
- import { ERROR_CHECKOUT_TIME , MAX_SESSION_LIFE , SESSION_IDLE_DURATION , WINDOW } from './constants' ;
7
+ import { BUFFER_CHECKOUT_TIME , MAX_SESSION_LIFE , SESSION_IDLE_DURATION , WINDOW } from './constants' ;
8
8
import { setupPerformanceObserver } from './coreHandlers/performanceObserver' ;
9
9
import { createEventBuffer } from './eventBuffer' ;
10
10
import { clearSession } from './session/clearSession' ;
@@ -152,7 +152,6 @@ export class ReplayContainer implements ReplayContainerInterface {
152
152
}
153
153
154
154
/**
155
- <<<<<<< HEAD
156
155
* Get the experimental options.
157
156
* THIS IS INTERNAL AND SUBJECT TO CHANGE!
158
157
* @hidden
@@ -204,9 +203,6 @@ export class ReplayContainer implements ReplayContainerInterface {
204
203
/**
205
204
* Start a replay regardless of sampling rate. Calling this will always
206
205
* create a new session. Will throw an error if replay is already in progress.
207
- =======
208
- * Initializes the plugin.
209
- >>>>>>> develop
210
206
*
211
207
* Creates or loads a session, attaches listeners to varying events (DOM,
212
208
* _performanceObserver, Recording, Sentry SDK, etc)
@@ -275,7 +271,7 @@ export class ReplayContainer implements ReplayContainerInterface {
275
271
// When running in error sampling mode, we need to overwrite `checkoutEveryNms`
276
272
// Without this, it would record forever, until an error happens, which we don't want
277
273
// instead, we'll always keep the last 60 seconds of replay before an error happened
278
- ...( this . recordingMode === 'buffer' && { checkoutEveryNms : ERROR_CHECKOUT_TIME } ) ,
274
+ ...( this . recordingMode === 'buffer' && { checkoutEveryNms : BUFFER_CHECKOUT_TIME } ) ,
279
275
emit : getHandleRecordingEmit ( this ) ,
280
276
onMutation : this . _onMutationHandler ,
281
277
} ) ;
0 commit comments