From 565b8fb4b4f35c5065ab07fb649111613b7c3c69 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Fri, 20 Oct 2023 00:56:34 +0200 Subject: [PATCH] fix --- .../exceptions/exception-autocapture.ts | 5 ----- src/extensions/sessionrecording.ts | 15 +-------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/extensions/exceptions/exception-autocapture.ts b/src/extensions/exceptions/exception-autocapture.ts index 47d8b0192..ec7c26558 100644 --- a/src/extensions/exceptions/exception-autocapture.ts +++ b/src/extensions/exceptions/exception-autocapture.ts @@ -105,11 +105,6 @@ export class ExceptionObserver { if (this.isEnabled()) { this.startCapturing() this.debugLog('Remote config for exception autocapture is enabled, starting', autocaptureExceptionsResponse) - } else { - this.debugLog( - 'Remote config for exception autocapture is disabled, not starting', - autocaptureExceptionsResponse - ) } } diff --git a/src/extensions/sessionrecording.ts b/src/extensions/sessionrecording.ts index bc984acee..d7c54a0ab 100644 --- a/src/extensions/sessionrecording.ts +++ b/src/extensions/sessionrecording.ts @@ -182,16 +182,8 @@ export class SessionRecording { private makeSamplingDecision(sessionId: string): void { const sessionIdChanged = this.sessionId !== sessionId - // TODO what if the session id hasn't changed? - - // eslint-disable-next-line no-console - console.log('[makeSamplingDecision] called for session id', sessionId) - // eslint-disable-next-line no-console - console.log('[makeSamplingDecision] while session id is ', this.sessionId) const sampleRate = this.getSampleRate() - // eslint-disable-next-line no-console - console.log('[makeSamplingDecision] sample rate is', sampleRate) if (typeof sampleRate !== 'number') { return @@ -212,8 +204,7 @@ export class SessionRecording { `[SessionSampling] Sample rate (${sampleRate}) has determined that this sessionId (${sessionId}) will not be sent to the server.` ) } - // eslint-disable-next-line no-console - console.log('[makeSamplingDecision] shouldSample is', shouldSample) + this.instance.persistence?.register({ [SESSION_RECORDING_IS_SAMPLED]: shouldSample, }) @@ -358,10 +349,6 @@ export class SessionRecording { const sessionIdChanged = this.sessionId !== sessionId const windowIdChanged = this.windowId !== windowId - if (sessionIdChanged && this.sessionId === null) { - // eslint-disable-next-line no-console - console.log('[emit] marking session id as changed because it was null', event.type) - } this.windowId = windowId this.sessionId = sessionId