[강운덕] [LUCYSUS-1744] span 으로 start, end time을 이동시킴.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@877 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2012-11-20 04:53:00 +00:00
parent 3b49bc4ca6
commit 94573269f9
11 changed files with 70 additions and 35 deletions
+3 -6
View File
@@ -25,10 +25,8 @@ public class Span {
private final List<HippoAnnotation> annotations = new ArrayList<HippoAnnotation>(5);
public Span(TraceID traceId, String name, String endPoint) {
public Span(TraceID traceId) {
this.traceID = traceId;
this.name = name;
this.endPoint = endPoint;
}
public TraceID getTraceID() {
@@ -119,9 +117,8 @@ public class Span {
com.profiler.common.dto.thrift.Span span = new com.profiler.common.dto.thrift.Span();
span.setAgentId(Agent.getInstance().getAgentId());
span.setTimestamp(startTime);
// TODO api를 생성하고 여기를 고치자.
//span.setEndTime(startTime);
span.setStartTime(startTime);
span.setEndTime(endTime);
span.setMostTraceId(traceID.getId().getMostSignificantBits());
span.setLeastTraceId(traceID.getId().getLeastSignificantBits());
span.setName(name);