evanxuhe commented on issue #3084: Wrong display when there is pathvariable in 
path
URL: https://github.com/apache/skywalking/issues/3084#issuecomment-511769653
 
 
   > ```java
   >  @Override
   >     public AbstractSpan createEntrySpan(final String operationName) {
   >         if (isLimitMechanismWorking()) {
   >             NoopSpan span = new NoopSpan();
   >             return push(span);
   >         }
   >         AbstractSpan entrySpan;
   >         final AbstractSpan parentSpan = peek();
   >         final int parentSpanId = parentSpan == null ? -1 : 
parentSpan.getSpanId();
   >         if (parentSpan != null && parentSpan.isEntry()) {
   >             entrySpan = 
(AbstractTracingSpan)DictionaryManager.findEndpointSection()
   >                 .findOnly(segment.getServiceId(), operationName)
   >                 .doInCondition(new PossibleFound.FoundAndObtain() {
   >                     @Override public Object doProcess(int operationId) {
   >                         return parentSpan.setOperationId(operationId);
   >                     }
   >                 }, new PossibleFound.NotFoundAndObtain() {
   >                     @Override public Object doProcess() {
   >                         return parentSpan.setOperationName(operationName);
   >                     }
   >                 });
   >             return entrySpan.start();
   >         } else {
   >             entrySpan = 
(AbstractTracingSpan)DictionaryManager.findEndpointSection()
   >                 .findOnly(segment.getServiceId(), operationName)
   >                 .doInCondition(new PossibleFound.FoundAndObtain() {
   >                     @Override public Object doProcess(int operationId) {
   >                         return new EntrySpan(spanIdGenerator++, 
parentSpanId, operationId);
   >                     }
   >                 }, new PossibleFound.NotFoundAndObtain() {
   >                     @Override public Object doProcess() {
   >                         return new EntrySpan(spanIdGenerator++, 
parentSpanId, operationName);
   >                     }
   >                 });
   >             entrySpan.start();
   >             return push(entrySpan);
   >         }
   >     }
   > ```
   > 
   > I can see it depends on the spanIdGenerator field which default is 0.
   
   I will try to debug this part to find out problem

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


With regards,
Apache Git Services

Reply via email to