Skip to content

Commit a15aa49

Browse files
🐛 [PANA-3960] Allow more queued request data for better session replay reliability (#3807)
1 parent d9ed993 commit a15aa49

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/core/src/transport/sendWithRetryStrategy.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { mockClock, setNavigatorOnLine } from '../../test'
22
import type { Clock } from '../../test'
33
import { ErrorSource } from '../domain/error/error.types'
44
import { Observable } from '../tools/observable'
5+
import { ONE_MEBI_BYTE } from '../tools/utils/byteUtils'
56
import type { RetryState } from './sendWithRetryStrategy'
67
import {
78
newRetryState,
@@ -168,7 +169,7 @@ describe('sendWithRetryStrategy', () => {
168169
expect(reportErrorSpy).toHaveBeenCalled()
169170
expect(reportErrorSpy.calls.argsFor(0)[0]).toEqual(
170171
jasmine.objectContaining({
171-
message: 'Reached max logs events size queued for upload: 3MiB',
172+
message: `Reached max logs events size queued for upload: ${MAX_QUEUE_BYTES_COUNT / ONE_MEBI_BYTE}MiB`,
172173
source: ErrorSource.AGENT,
173174
})
174175
)

packages/core/src/transport/sendWithRetryStrategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { Payload, HttpRequestEvent, HttpResponse, BandwidthStats } from './
1010

1111
export const MAX_ONGOING_BYTES_COUNT = 80 * ONE_KIBI_BYTE
1212
export const MAX_ONGOING_REQUESTS = 32
13-
export const MAX_QUEUE_BYTES_COUNT = 3 * ONE_MEBI_BYTE
13+
export const MAX_QUEUE_BYTES_COUNT = 20 * ONE_MEBI_BYTE
1414
export const MAX_BACKOFF_TIME = ONE_MINUTE
1515
export const INITIAL_BACKOFF_TIME = ONE_SECOND
1616

0 commit comments

Comments
 (0)