Skip to content

Commit cba83bf

Browse files
committed
set a 500 timeout millis to flush the logs on crash
moved replay capture after sending the crash
1 parent a5e99b0 commit cba83bf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sentry/src/main/java/io/sentry/SentryClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ private boolean shouldApplyScopeData(final @NotNull CheckIn event, final @NotNul
213213
sentryId = event.getEventId();
214214
}
215215

216+
final boolean isBackfillable = HintUtils.hasType(hint, Backfillable.class);
217+
final boolean isCached =
218+
HintUtils.hasType(hint, Cached.class) && !HintUtils.hasType(hint, ApplyScopeData.class);
219+
216220
try {
217221
final @Nullable TraceContext traceContext = getTraceContext(scope, hint, event);
218222
final boolean shouldSendAttachments = event != null;
@@ -236,10 +240,6 @@ private boolean shouldApplyScopeData(final @NotNull CheckIn event, final @NotNul
236240
if (scope != null) {
237241
finalizeTransaction(scope, hint);
238242
}
239-
240-
final boolean isBackfillable = HintUtils.hasType(hint, Backfillable.class);
241-
final boolean isCached =
242-
HintUtils.hasType(hint, Cached.class) && !HintUtils.hasType(hint, ApplyScopeData.class);
243243
// if event is backfillable or cached we don't wanna trigger capture replay, because it's
244244
// an event from the past. If it's cached, but with ApplyScopeData, it comes from the outbox
245245
// folder and we still want to capture replay (e.g. a native captureException error)

0 commit comments

Comments
 (0)