mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-22 03:06:26 +10:00
[강운덕] [LUCYSUS-1744] http::1.1 이런식으로 안나오도록 destination 에 대한 스펙을 다시 생각하여 구현함. 데이터가 중복되어 있어 추가 정리가 필요하고 좀더 정규화가 필요함.
-추가 제거 되어야 될 데이터 : serverName, subspan의 endpoint git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1261 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -22,8 +22,12 @@ public class SubSpan implements Thriftable {
|
||||
private String serviceName;
|
||||
private String rpc;
|
||||
private ServiceType serviceType;
|
||||
|
||||
private String endPoint;
|
||||
|
||||
private String destionationId;
|
||||
private List<String> destinationAddress;
|
||||
|
||||
private final List<Annotation> annotations = new ArrayList<Annotation>(5);
|
||||
|
||||
private int nextSpanId = -1;
|
||||
@@ -81,6 +85,22 @@ public class SubSpan implements Thriftable {
|
||||
this.endPoint = endPoint;
|
||||
}
|
||||
|
||||
public String getDestionationId() {
|
||||
return destionationId;
|
||||
}
|
||||
|
||||
public void setDestionationId(String destionationId) {
|
||||
this.destionationId = destionationId;
|
||||
}
|
||||
|
||||
public List<String> getDestinationAddress() {
|
||||
return destinationAddress;
|
||||
}
|
||||
|
||||
public void setDestinationAddress(List<String> destinationAddress) {
|
||||
this.destinationAddress = destinationAddress;
|
||||
}
|
||||
|
||||
public void setStartTime(long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
@@ -180,6 +200,7 @@ public class SubSpan implements Thriftable {
|
||||
}
|
||||
|
||||
subSpan.setEndPoint(endPoint);
|
||||
subSpan.setDestinationId(this.destionationId);
|
||||
|
||||
// 여기서 데이터 인코딩을 하자.
|
||||
List<com.profiler.common.dto.thrift.Annotation> annotationList = new ArrayList<com.profiler.common.dto.thrift.Annotation>(annotations.size());
|
||||
@@ -198,4 +219,8 @@ public class SubSpan implements Thriftable {
|
||||
|
||||
return subSpan;
|
||||
}
|
||||
|
||||
public void setDestinationAddress() {
|
||||
//To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user