[유치수] [PINPOINT-234] SpanBO에서 hasExceptin값 설정 기준이 잘못된 문제 수정. 임시로 수정한 것이고 판단 정책을 다시 세워야함.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@2961 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2013-11-26 09:27:13 +00:00
parent f3b70a4977
commit 3f065f3e76
@@ -91,13 +91,17 @@ public class SpanBo implements com.nhn.pinpoint.common.bo.Span {
this.errCode = span.getErr();
this.remoteAddr = span.getRemoteAddr();
final TIntStringValue exceptionInfo = span.getExceptionInfo();
if (exceptionInfo != null) {
this.hasException = true;
this.exceptionId = exceptionInfo.getIntValue();
this.exceptionMessage = exceptionInfo.getStringValue();
}
if (span.isSetErr()) {
this.hasException = true;
// FIXME span.errCode는 span과 spanEvent의 에러를 모두 포함한 값.
// exceptionInfo는 span자체의 에러정보이기 때문에 errCode가 0이 아니더라도 exceptionInfo는 null일 수 있음.
final TIntStringValue exceptionInfo = span.getExceptionInfo();
if (exceptionInfo != null) {
this.exceptionId = exceptionInfo.getIntValue();
this.exceptionMessage = exceptionInfo.getStringValue();
}
}
setAnnotationList(span.getAnnotations());
}