Skip to content

Commit

Permalink
all profiling io was moved to background threads (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanosiano committed Mar 31, 2022
1 parent 67e4347 commit 8dbb019
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sentry/src/main/java/io/sentry/SentryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ private boolean shouldApplyScopeData(
final SentryEnvelopeItem profilingTraceItem =
SentryEnvelopeItem.fromProfilingTrace(
profilingTraceData, options.getMaxTraceFileSize(), options.getSerializer());
if (profilingTraceItem != null) {
envelopeItems.add(profilingTraceItem);
}
envelopeItems.add(profilingTraceItem);
}

if (attachments != null) {
Expand Down

0 comments on commit 8dbb019

Please sign in to comment.