Skip to content
Open
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 @@ -8,6 +8,7 @@
- Fix visual artifacts for the Canvas strategy on some devices ([#4861](https://github.com/getsentry/sentry-java/pull/4861))
- [Config] Trim whitespace on properties path ([#4880](https://github.com/getsentry/sentry-java/pull/4880))
- Only set `DefaultReplayBreadcrumbConverter` if replay is available ([#4888](https://github.com/getsentry/sentry-java/pull/4888))
- 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