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 @@ -9,6 +9,7 @@
- When generating `sentry-trace` header from `PropagationContext` we now copy the `sampled` flag.
- In `TransactionContext.fromPropagationContext` when there is no parent sampling decision, keep the decision `null` so a new sampling decision is made instead of defaulting to `false`
- Defer sampling decision by setting `sampled` to `null` in `PropagationContext` when using OpenTelemetry in case of an incoming defer sampling `sentry-trace` header. ([#3945](https://github.com/getsentry/sentry-java/pull/3945))
- Build `PropagationContext` from `SamplingDecision` made by `SentrySampler` instead of parsing headers and potentially ignoring a sampling decision in case a `sentry-trace` header comes in with deferred sampling decision. ([#3947](https://github.com/getsentry/sentry-java/pull/3947))

## 8.0.0-rc.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ public void onStart(final @NotNull Context parentContext, final @NotNull ReadWri
final @Nullable Boolean sampled = isSampled(otelSpan, samplingDecision);

final @NotNull PropagationContext propagationContext =
sentryTraceHeader == null
? new PropagationContext(
new SentryId(traceId), sentrySpanId, sentryParentSpanId, baggage, sampled)
: PropagationContext.fromHeaders(sentryTraceHeader, baggage, sentrySpanId);
new PropagationContext(
new SentryId(traceId), sentrySpanId, sentryParentSpanId, baggage, sampled);

updatePropagationContext(scopes, propagationContext);
}
Expand Down
Loading