Update apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java

Fix isInAsyncMode never be set.

Co-Authored-By: wu-sheng <wu.sheng@foxmail.com>
This commit is contained in:
Brandon Fergerson 2019-03-16 08:21:36 +08:00 committed by GitHub
parent a48dab5f3b
commit ad375891b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
@Override public AbstractSpan prepareForAsync() {
context = ContextManager.awaitFinishAsync(this);
isInAsyncMode = true;
return this;
}