Fix issue that the time to remove the REQUEST_KEY_IN_RUNTIME_CONTEXT flag is incorrect (#2913)

This commit is contained in:
Xin,Zhang 2019-06-20 08:51:54 +08:00 committed by 吴晟 Wu Sheng
parent 825a52195d
commit ef68b3f218
1 changed files with 3 additions and 3 deletions

View File

@ -154,10 +154,10 @@ public abstract class AbstractMethodInterceptor implements InstanceMethodsAround
if (response.getStatus() >= 400) {
span.errorOccurred();
Tags.STATUS_CODE.set(span, Integer.toString(response.getStatus()));
ContextManager.getRuntimeContext().remove(REQUEST_KEY_IN_RUNTIME_CONTEXT);
ContextManager.getRuntimeContext().remove(RESPONSE_KEY_IN_RUNTIME_CONTEXT);
}
ContextManager.getRuntimeContext().remove(REQUEST_KEY_IN_RUNTIME_CONTEXT);
ContextManager.getRuntimeContext().remove(RESPONSE_KEY_IN_RUNTIME_CONTEXT);
}
ContextManager.stopSpan();