You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/persistence/file/FilePersistenceConfig.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ internal data class FilePersistenceConfig(
Copy file name to clipboardExpand all lines: dd-sdk-android-core/src/main/kotlin/com/datadog/android/core/internal/persistence/file/batch/BatchFileOrchestrator.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,7 @@ internal class BatchFileOrchestrator(
237
237
}
238
238
239
239
val isRecentEnough = isFileRecent(lastFile, recentWriteDelayMs)
240
-
val hasRoomForMore = lastFile.lengthSafe(internalLogger) < config.maxBatchSize
240
+
val hasRoomForMore = lastFile.lengthSafe(internalLogger) < config.maxBatchSize- config.maxItemSize
241
241
val hasSlotForMore = (lastKnownFileItemCount < config.maxItemsPerBatch)
Copy file name to clipboardExpand all lines: dd-sdk-android-core/src/test/kotlin/com/datadog/android/core/internal/persistence/file/batch/BatchFileOrchestratorTest.kt
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -522,6 +522,37 @@ internal class BatchFileOrchestratorTest {
522
522
verifyNoMoreInteractions(mockMetricsDispatcher)
523
523
}
524
524
525
+
@Test
526
+
fun`M return new File W getWritableFile() {previous file leaves no room for a max-size item}`(
Copy file name to clipboardExpand all lines: features/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/internal/ResourcesFeature.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ internal class ResourcesFeature(
58
58
/**
59
59
* Session Replay Resources storage configuration with the following parameters:
60
60
* max item size = 10 MB,
61
-
* max items per batch = 500,
61
+
* max items per batch = 1000,
62
62
* max batch size = 10 MB, SR intake batch limit is 10MB
Copy file name to clipboardExpand all lines: features/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/internal/SessionReplayFeature.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -402,7 +402,7 @@ internal class SessionReplayFeature(
402
402
/**
403
403
* Session Replay storage configuration with the following parameters:
404
404
* max item size = 10 MB,
405
-
* max items per batch = 500,
405
+
* max items per batch = 1000,
406
406
* max batch size = 10 MB, SR intake batch limit is 10MB
Copy file name to clipboardExpand all lines: features/dd-sdk-android-webview/src/main/kotlin/com/datadog/android/webview/internal/replay/WebViewReplayFeature.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ internal class WebViewReplayFeature(
59
59
/**
60
60
* Storage configuration with the following parameters:
61
61
* max item size = 10 MB,
62
-
* max items per batch = 500,
62
+
* max items per batch = 1000,
63
63
* max batch size = 10 MB, SR intake batch limit is 10MB
0 commit comments