mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-22 03:06:26 +10:00
[강운덕] [LUCYSUS-1744] SubSpan을 Event로 변경함.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1270 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
|
||||
import com.profiler.Agent;
|
||||
import com.profiler.common.ServiceType;
|
||||
import com.profiler.common.dto.thrift.Event;
|
||||
|
||||
/**
|
||||
* Span represent RPC
|
||||
@@ -169,12 +170,12 @@ public class SubSpan implements Thriftable {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public com.profiler.common.dto.thrift.SubSpan toThrift() {
|
||||
public Event toThrift() {
|
||||
return toThrift(false);
|
||||
}
|
||||
|
||||
public com.profiler.common.dto.thrift.SubSpan toThrift(boolean child) {
|
||||
com.profiler.common.dto.thrift.SubSpan subSpan = new com.profiler.common.dto.thrift.SubSpan();
|
||||
public Event toThrift(boolean child) {
|
||||
Event subSpan = new Event();
|
||||
|
||||
long parentSpanStartTime = parentSpan.getStartTime();
|
||||
subSpan.setStartElapsed((int) (startTime - parentSpanStartTime));
|
||||
|
||||
Reference in New Issue
Block a user