[강운덕] [LUCYSUS-1744] agent의 유니크성을 높이기 위해서 short 타입의 identifier를 추가함.

apimetainfo, sqlmeatainfo에서 validation체크를 할때 사용함.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1179 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-02-12 08:28:23 +00:00
parent ee613bd0b0
commit 4d9c70b686
3 changed files with 63 additions and 124 deletions
+7 -5
View File
@@ -20,7 +20,7 @@ public class Span implements Thriftable {
private String rpc;
private ServiceType serviceType;
private String endPoint;
private boolean exception;
private int exception;
private final List<Annotation> annotations = new ArrayList<Annotation>(5);
@@ -98,12 +98,12 @@ public class Span implements Thriftable {
this.subSpanList = subSpanList;
}
public boolean isException() {
public int getException() {
return exception;
}
public void setException(boolean exception) {
this.exception = exception;
public void setException(int exception) {
this.exception = exception;
}
public String toString() {
@@ -145,7 +145,9 @@ public class Span implements Thriftable {
span.setSpanId(traceID.getSpanId());
span.setParentSpanId(traceID.getParentSpanId());
span.setEndPoint(endPoint);
span.setErr(exception);
if (exception != 0) {
span.setErr(exception);
}
// 여기서 데이터 인코딩을 하자.
List<com.profiler.common.dto.thrift.Annotation> annotationList = new ArrayList<com.profiler.common.dto.thrift.Annotation>(annotations.size());