Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- Report Timber.tag() as `timber.tag` log attribute ([#4845](https://github.com/getsentry/sentry-java/pull/4845))
- Session Replay: Add screenshot strategy serialization to RRWeb events ([#4851](https://github.com/getsentry/sentry-java/pull/4851))

### Fixes

- Fix profilerId propagation ([#4833](https://github.com/getsentry/sentry-java/pull/4833))

## 8.25.0

### Fixes
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