wu-sheng commented on a change in pull request #771: Add [Agent] ServiceComb 
Plugin #437
URL: 
https://github.com/apache/incubator-skywalking/pull/771#discussion_r167422947
 
 

 ##########
 File path: 
apm-sniffer/apm-sdk-plugin/servicecomb-plugin/servicecomb-java-chassis-0.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/servicecomb/ProducerOperationHandlerInterceptor.java
 ##########
 @@ -48,16 +48,28 @@ public void beforeMethod(EnhancedInstance objInst, Method 
method, Object[] allAr
             next = next.next();
             next.setHeadValue(invocation.getContext().get(next.getHeadKey()));
         }
+        if (null == invocation.getOperationMeta()) {
+            return;
+        }
         String operationName = invocation.getMicroserviceQualifiedName();
         AbstractSpan span = ContextManager.createEntrySpan(operationName, 
contextCarrier);
-        String url = invocation.getOperationMeta().getOperationPath();
-        Tags.URL.set(span, url);
+        if (null != invocation.getOperationMeta() && null != 
invocation.getOperationMeta().getOperationPath()) {
 
 Review comment:
   `(null == invocation.getOperationMeta()` has been invoked in line 51.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to