Skip to content

Commit

Permalink
Merge branch '8.x.x' into feat/restore-instrumenter-code
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer authored Sep 19, 2024
2 parents c11bc1c + 327cc51 commit d0601df
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.sentry.protocol.MeasurementValue;
import io.sentry.protocol.SentryId;
import io.sentry.protocol.TransactionNameSource;
import io.sentry.protocol.User;
import io.sentry.util.LazyEvaluator;
import io.sentry.util.Objects;
import java.lang.ref.WeakReference;
Expand Down Expand Up @@ -210,14 +209,14 @@ public OtelSpanWrapper(
private void updateBaggageValues() {
synchronized (this) {
if (baggage != null && baggage.isMutable()) {
final AtomicReference<User> userAtomicReference = new AtomicReference<>();
final AtomicReference<SentryId> replayIdAtomicReference = new AtomicReference<>();
scopes.configureScope(
scope -> {
userAtomicReference.set(scope.getUser());
replayIdAtomicReference.set(scope.getReplayId());
});
baggage.setValuesFromTransaction(
getSpanContext().getTraceId(),
null,
replayIdAtomicReference.get(),
scopes.getOptions(),
this.getSamplingDecision(),
getTransactionName(),
Expand Down

0 comments on commit d0601df

Please sign in to comment.