Merge branch '1.2.x'
This commit is contained in:
@@ -98,7 +98,10 @@ public class TraceAsyncRestTemplate extends AsyncRestTemplate {
|
||||
this.errorParser));
|
||||
// potential race can happen here
|
||||
if (span != null && span.equals(this.tracer.getCurrentSpan())) {
|
||||
this.tracer.detach(span);
|
||||
Span parent = this.tracer.detach(span);
|
||||
if (parent != null) {
|
||||
this.tracer.continueSpan(parent);
|
||||
}
|
||||
}
|
||||
return new ListenableFuture<T>() {
|
||||
|
||||
@@ -287,9 +290,4 @@ public class TraceAsyncRestTemplate extends AsyncRestTemplate {
|
||||
return this.tracer.isTracing();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user