liubao68 commented on code in PR #4057:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4057#discussion_r1407381869


##########
handlers/handler-tracing-zipkin/src/main/java/org/apache/servicecomb/tracing/zipkin/ZipkinConsumerDelegate.java:
##########
@@ -50,7 +50,7 @@ class ZipkinConsumerDelegate implements ZipkinTracingDelegate 
{
   }
 
   @Override
-  public Span createSpan(Invocation invocation) {
+  public synchronized Span createSpan(Invocation invocation) {
     return handler.handleSend(requestWrapper.invocation(invocation));
   }

Review Comment:
   Synchronization maybe very pool performance. Event your notice is correct, 
the modification is not good. 
   
   And maybe create a new wrapper instance is faster than synchronization. 



-- 
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