Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 19, 2023
1 parent 1cd017e commit 565b8fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
5 changes: 0 additions & 5 deletions src/extensions/exceptions/exception-autocapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}

Expand Down
15 changes: 1 addition & 14 deletions src/extensions/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
})
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 565b8fb

Please sign in to comment.