mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 08:16:15 +10:00
Merge pull request #253 from jaehong-kim/is-252
patch web annotation logic bug
This commit is contained in:
@@ -116,7 +116,7 @@ public class SpanEventBo implements Span {
|
||||
this.nextSpanId = tSpanEvent.getNextSpanId();
|
||||
}
|
||||
|
||||
setAnnotationBoList(tSpanEvent.getAnnotations());
|
||||
setAnnotationList(tSpanEvent.getAnnotations());
|
||||
|
||||
final TIntStringValue exceptionInfo = tSpanEvent.getExceptionInfo();
|
||||
if (exceptionInfo != null) {
|
||||
@@ -168,7 +168,7 @@ public class SpanEventBo implements Span {
|
||||
this.nextSpanId = spanEvent.getNextSpanId();
|
||||
}
|
||||
|
||||
setAnnotationBoList(spanEvent.getAnnotations());
|
||||
setAnnotationList(spanEvent.getAnnotations());
|
||||
|
||||
final TIntStringValue exceptionInfo = spanEvent.getExceptionInfo();
|
||||
if (exceptionInfo != null) {
|
||||
@@ -321,7 +321,7 @@ public class SpanEventBo implements Span {
|
||||
this.nextSpanId = nextSpanId;
|
||||
}
|
||||
|
||||
private void setAnnotationBoList(List<TAnnotation> annotations) {
|
||||
public void setAnnotationList(List<TAnnotation> annotations) {
|
||||
if (annotations == null) {
|
||||
return;
|
||||
}
|
||||
@@ -332,6 +332,13 @@ public class SpanEventBo implements Span {
|
||||
this.annotationBoList = boList;
|
||||
}
|
||||
|
||||
public void setAnnotationBoList(List<AnnotationBo> anoList) {
|
||||
if (anoList == null) {
|
||||
return;
|
||||
}
|
||||
this.annotationBoList = anoList;
|
||||
}
|
||||
|
||||
public boolean hasException() {
|
||||
return hasException;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,6 @@ public class SpanServiceImpl implements SpanService {
|
||||
|
||||
SpanResult result = order(spans, selectedSpanHint);
|
||||
List<SpanAlign> order = result.getSpanAlignList();
|
||||
// transitionApiId(order);
|
||||
transitionDynamicApiId(order);
|
||||
transitionSqlId(order);
|
||||
transitionCachedString(order);
|
||||
@@ -99,7 +98,7 @@ public class SpanServiceImpl implements SpanService {
|
||||
annotationBoList = spanAlign.getSpanEventBo().getAnnotationBoList();
|
||||
if (annotationBoList == null) {
|
||||
annotationBoList = new ArrayList<AnnotationBo>();
|
||||
spanAlign.getSpanBo().setAnnotationBoList(annotationBoList);
|
||||
spanAlign.getSpanEventBo().setAnnotationBoList(annotationBoList);
|
||||
}
|
||||
annotationReplacementCallback.replacement(spanAlign, annotationBoList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user