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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Only set `DefaultReplayBreadcrumbConverter` if replay is available ([#4888](https://github.com/getsentry/sentry-java/pull/4888))
- Session Replay: Cache connection status instead of using blocking calls ([#4891](https://github.com/getsentry/sentry-java/pull/4891))
- Fix log count in client reports ([#4869](https://github.com/getsentry/sentry-java/pull/4869))
- Fix profilerId propagation ([#4833](https://github.com/getsentry/sentry-java/pull/4833))

### Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ private void transferSpanDetails(
@NotNull TransactionNameSource transactionNameSource = spanInfo.getTransactionNameSource();
@Nullable SpanId parentSpanId = null;
@Nullable Baggage baggage = null;
@NotNull SentryId profilerId = SentryId.EMPTY_ID;

if (sentrySpanMaybe != null) {
final @NotNull IOtelSpanWrapper sentrySpan = sentrySpanMaybe;
Expand All @@ -312,6 +313,7 @@ private void transferSpanDetails(
final @NotNull SpanContext spanContext = sentrySpan.getSpanContext();
parentSpanId = spanContext.getParentSpanId();
baggage = spanContext.getBaggage();
profilerId = spanContext.getProfilerId();
}

final @NotNull TransactionContext transactionContext =
Expand All @@ -324,6 +326,7 @@ private void transferSpanDetails(
transactionContext.setTransactionNameSource(transactionNameSource);
transactionContext.setOperation(spanInfo.getOp());
transactionContext.setInstrumenter(Instrumenter.SENTRY);
transactionContext.setProfilerId(profilerId);
if (sentrySpanMaybe != null) {
transactionContext.setSamplingDecision(sentrySpanMaybe.getSamplingDecision());
transactionOptions.setOrigin(sentrySpanMaybe.getSpanContext().getOrigin());
Expand Down
Loading