Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### Fixes

- Support spans that are split into multiple batches ([#3539](https://github.com/getsentry/sentry-java/pull/3539))
- When spans belonging to a single transaction were split into multiple batches for SpanExporter, we did not add all spans because the isSpanTooOld check wasn't inverted.
- Parse and use `send-default-pii` and `max-request-body-size` from `sentry.properties` ([#3534](https://github.com/getsentry/sentry-java/pull/3534))

## 8.0.0-alpha.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public CompletableResultCode export(Collection<SpanData> spans) {
final @NotNull SentryInstantDate now = new SentryInstantDate();

final @NotNull List<SpanData> nonExpired =
remaining.stream().filter((span) -> isSpanTooOld(span, now)).collect(Collectors.toList());
remaining.stream().filter((span) -> !isSpanTooOld(span, now)).collect(Collectors.toList());

this.finishedSpans.addAll(nonExpired);

// TODO
Expand Down