From 3217ff1444a922a9f57fde64e5d73bbd8fcefe5c Mon Sep 17 00:00:00 2001 From: "Xin,Zhang" Date: Tue, 4 Jun 2019 17:38:50 +0800 Subject: [PATCH] Fix the span cannot stop when forward request (#2820) --- .../skywalking/apm/plugin/tomcat78x/ForwardInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apm-sniffer/apm-sdk-plugin/tomcat-7.x-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/tomcat78x/ForwardInterceptor.java b/apm-sniffer/apm-sdk-plugin/tomcat-7.x-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/tomcat78x/ForwardInterceptor.java index 68416c7ed6..4bcc46b599 100644 --- a/apm-sniffer/apm-sdk-plugin/tomcat-7.x-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/tomcat78x/ForwardInterceptor.java +++ b/apm-sniffer/apm-sdk-plugin/tomcat-7.x-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/tomcat78x/ForwardInterceptor.java @@ -46,7 +46,7 @@ public class ForwardInterceptor implements InstanceMethodsAroundInterceptor, Ins @Override public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class[] argumentsTypes, Object ret) throws Throwable { - + ContextManager.getRuntimeContext().remove(Constants.FORWARD_REQUEST_FLAG); return ret; } -- GitLab