File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
sentry-android-replay/src/main/java/io/sentry/android/replay/capture Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
- Send UI Profiling app start chunk when it finishes ([ #4423 ] ( https://github.com/getsentry/sentry-java/pull/4423 ) )
8
8
- Republish Javadoc [ #4457 ] ( https://github.com/getsentry/sentry-java/pull/4457 )
9
9
- Finalize ` OkHttpEvent ` even if no active span in ` SentryOkHttpInterceptor ` [ #4469 ] ( https://github.com/getsentry/sentry-java/pull/4469 )
10
- - Correctly capture Dialogs and non full-sized windows ([ #4354 ] ( https://github.com/getsentry/sentry-java/pull/4354 ) )
10
+ - Session Replay: Correctly capture Dialogs and non full-sized windows ([ #4354 ] ( https://github.com/getsentry/sentry-java/pull/4354 ) )
11
+ - Session Replay: Fix inconsistent ` segment_id ` ([ #4471 ] ( https://github.com/getsentry/sentry-java/pull/4471 ) )
11
12
12
13
## 8.13.2
13
14
Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ internal abstract class BaseCaptureStrategy(
107
107
108
108
override fun stop () {
109
109
cache?.close()
110
- currentSegment = - 1
111
110
replayStartTimestamp.set(0 )
112
111
segmentTimestamp = null
113
112
currentReplayId = SentryId .EMPTY_ID
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ internal class BufferCaptureStrategy(
57
57
val replayCacheDir = cache?.replayCacheDir
58
58
replayExecutor.submitSafely(options, " $TAG .stop" ) {
59
59
FileUtils .deleteRecursively(replayCacheDir)
60
+ currentSegment = - 1
60
61
}
61
62
super .stop()
62
63
}
@@ -205,7 +206,6 @@ internal class BufferCaptureStrategy(
205
206
} else {
206
207
DateUtils .getDateTime(now - errorReplayDuration)
207
208
}
208
- val segmentId = currentSegment
209
209
val duration = now - currentSegmentTimestamp.time
210
210
val replayId = currentReplayId
211
211
@@ -215,7 +215,7 @@ internal class BufferCaptureStrategy(
215
215
duration,
216
216
currentSegmentTimestamp,
217
217
replayId,
218
- segmentId ,
218
+ currentSegment ,
219
219
currentConfig.recordingHeight,
220
220
currentConfig.recordingWidth,
221
221
currentConfig.frameRate,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ internal class SessionCaptureStrategy(
59
59
if (segment is ReplaySegment .Created ) {
60
60
segment.capture(scopes)
61
61
}
62
+ currentSegment = - 1
62
63
FileUtils .deleteRecursively(replayCacheDir)
63
64
}
64
65
scopes?.configureScope { it.replayId = SentryId .EMPTY_ID }
@@ -159,7 +160,6 @@ internal class SessionCaptureStrategy(
159
160
160
161
val now = dateProvider.currentTimeMillis
161
162
val currentSegmentTimestamp = segmentTimestamp ? : return
162
- val segmentId = currentSegment
163
163
val duration = now - currentSegmentTimestamp.time
164
164
val replayId = currentReplayId
165
165
replayExecutor.submitSafely(options, " $TAG .$taskName " ) {
@@ -168,7 +168,7 @@ internal class SessionCaptureStrategy(
168
168
duration,
169
169
currentSegmentTimestamp,
170
170
replayId,
171
- segmentId ,
171
+ currentSegment ,
172
172
currentConfig.recordingHeight,
173
173
currentConfig.recordingWidth,
174
174
currentConfig.frameRate,
You can’t perform that action at this time.
0 commit comments