Skip to content

Commit

Permalink
Review by @jackshirazi
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstadler committed Feb 28, 2022
1 parent dca0fb1 commit fdbbda9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ protected void afterEnd() {
return;
}
if (!buffered.tryToCompress(this)) {
if (!parent.bufferedSpan.compareAndSet(buffered, this)) {
if (parent.bufferedSpan.compareAndSet(buffered, this)) {
this.tracer.endSpan(buffered);
} else {
// the failed update would ideally lead to a compression attempt with the new buffer,
// but we're dropping the compression attempt to keep things simple
this.tracer.endSpan(buffered);
this.tracer.endSpan(this);
} else {
this.tracer.endSpan(buffered);
}
} else if (isSampled()) {
Transaction transaction = getTransaction();
Expand Down

0 comments on commit fdbbda9

Please sign in to comment.