wu-sheng commented on a change in pull request #6120:
URL: https://github.com/apache/skywalking/pull/6120#discussion_r550883497



##########
File path: 
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/TraceAnalyzer.java
##########
@@ -49,30 +49,26 @@ public void doAnalysis(SegmentObject segmentObject) {
 
         createSpanListeners();
 
-        try {
-            notifySegmentListener(segmentObject);
-
-            segmentObject.getSpansList().forEach(spanObject -> {
-                if (spanObject.getSpanId() == 0) {
-                    notifyFirstListener(spanObject, segmentObject);
-                }
-
-                if (SpanType.Exit.equals(spanObject.getSpanType())) {
-                    notifyExitListener(spanObject, segmentObject);
-                } else if (SpanType.Entry.equals(spanObject.getSpanType())) {
-                    notifyEntryListener(spanObject, segmentObject);
-                } else if (SpanType.Local.equals(spanObject.getSpanType())) {
-                    notifyLocalListener(spanObject, segmentObject);
-                } else {
-                    log.error("span type value was unexpected, span type name: 
{}", spanObject.getSpanType()
-                                                                               
               .name());
-                }
-            });
-
-            notifyListenerToBuild();
-        } catch (Throwable e) {
-            log.error(e.getMessage(), e);
-        }

Review comment:
       Remember to add this kind of fix(bug) in the changlog, which you have 
submitted yet.




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

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


Reply via email to