mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 00:36:02 +10:00
[유치수] [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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user