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