wu-sheng commented on code in PR #700:
URL: https://github.com/apache/skywalking-java/pull/700#discussion_r1650212103


##########
apm-sniffer/apm-sdk-plugin/redisson-3.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java:
##########
@@ -81,6 +83,7 @@ public void beforeMethod(EnhancedInstance objInst, Method 
method, Object[] allAr
             }
         }
 
+        context.setContext(STOP_SPAN_FLAG);
         AbstractSpan span = ContextManager.createExitSpan(operationName, peer);

Review Comment:
   ```suggestion
           AbstractSpan span = ContextManager.createExitSpan(operationName, 
peer);
           context.setContext(STOP_SPAN_FLAG);
   ```
   
   Put the flag after Created, this should be safer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to