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: sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/CaptureSource.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,11 @@ class CaptureSource(
121
121
122
122
val rect =Rect(0, 0, decorViewWidth, decorViewHeight)
123
123
124
+
// protect against race condition where decor view has no size
125
+
if (decorViewWidth <=0|| decorViewHeight <=0) {
126
+
return@withContext null
127
+
}
128
+
124
129
// TODO: O11Y-625 - optimize memory allocations
125
130
// TODO: O11Y-625 - see if holding bitmap is more efficient than base64 encoding immediately after compression
126
131
// TODO: O11Y-628 - use captureQuality option for scaling and adjust this bitmap accordingly, may need to investigate power of 2 rounding for performance
Copy file name to clipboardExpand all lines: sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/PrivacyProfile.kt
Copy file name to clipboardExpand all lines: sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/RRwebGraphQLReplayLogExporter.kt
+48-27Lines changed: 48 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,18 @@ private const val REPLAY_EXPORTER_NAME = "RRwebGraphQLReplayLogExporter"
@@ -256,18 +272,23 @@ class RRwebGraphQLReplayLogExporter(
256
272
)
257
273
eventBatch.add(viewportEvent)
258
274
259
-
//TODO: O11Y-624 - double check error case handling, may need to add retries per api service request, should subsequent requests wait for previous requests to succeed?
275
+
//record last sent state
260
276
lastSessionId = capture.session
261
277
lastSentWidth = capture.origWidth
262
278
lastSentHeight = capture.origHeight
263
279
280
+
// TODO: O11Y-624 - double check error case handling, may need to add retries per api service request, should subsequent requests wait for previous requests to succeed?
Copy file name to clipboardExpand all lines: sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/ReplayInstrumentation.kt
Copy file name to clipboardExpand all lines: sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/ReplayOptions.kt
0 commit comments