mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-22 19:27:13 +10:00
[강운덕] [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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user