From 3f065f3e76d8679732e4c580d3cb2ce231ff116a Mon Sep 17 00:00:00 2001 From: Chisu Yu Date: Tue, 26 Nov 2013 09:27:13 +0000 Subject: [PATCH] =?UTF-8?q?[=EC=9C=A0=EC=B9=98=EC=88=98]=20[PINPOINT-234]?= =?UTF-8?q?=20SpanBO=EC=97=90=EC=84=9C=20hasExceptin=EA=B0=92=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EA=B8=B0=EC=A4=80=EC=9D=B4=20=EC=9E=98=EB=AA=BB?= =?UTF-8?q?=EB=90=9C=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95.=20?= =?UTF-8?q?=EC=9E=84=EC=8B=9C=EB=A1=9C=20=EC=88=98=EC=A0=95=ED=95=9C=20?= =?UTF-8?q?=EA=B2=83=EC=9D=B4=EA=B3=A0=20=ED=8C=90=EB=8B=A8=20=EC=A0=95?= =?UTF-8?q?=EC=B1=85=EC=9D=84=20=EB=8B=A4=EC=8B=9C=20=EC=84=B8=EC=9B=8C?= =?UTF-8?q?=EC=95=BC=ED=95=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@2961 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../com/nhn/pinpoint/common/bo/SpanBo.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/nhn/pinpoint/common/bo/SpanBo.java b/src/main/java/com/nhn/pinpoint/common/bo/SpanBo.java index e13a9b3c0..6d4588ec8 100644 --- a/src/main/java/com/nhn/pinpoint/common/bo/SpanBo.java +++ b/src/main/java/com/nhn/pinpoint/common/bo/SpanBo.java @@ -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()); }