Gateway compatible with downstream loss (#3445)

This commit is contained in:
于玉桔 2019-09-11 14:43:17 +08:00 committed by 吴晟 Wu Sheng
parent 96b2baaddb
commit b5b088acc0
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ public class AbstractServerResponseMethodInterceptor implements InstanceMethodsA
}
Tags.STATUS_CODE.set(span, Integer.toString(status.value()));
}
ContextManager.stopSpan(span);
if (ContextManager.isActive()) {
ContextManager.stopSpan(span);
} else {
span.asyncFinish();
}
((EnhancedInstance) allArguments[0]).setSkyWalkingDynamicField(null);
}
}