Skip to content
Draft
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
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