mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-20 18:25:55 +10:00
[유치수] [NOBTS] change thrift
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@800 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -37,7 +37,7 @@ public class PathTest {
|
||||
|
||||
public void printSpan(String msg, Span span) {
|
||||
// System.out.println(msg + " id:" + span.getSpanID() + " pid:" + span.getParentSpanId() + " time:" + format.format(new Date(span.getTimestamp())));
|
||||
System.out.println(msg + " id:" + span.getSpanID() + " pid:" + span.getParentSpanId() + " time:" + span.getTimestamp());
|
||||
System.out.println(msg + " id:" + span.getSpanId() + " pid:" + span.getParentSpanId() + " time:" + span.getTimestamp());
|
||||
}
|
||||
// private Span root() {
|
||||
// TraceID traceID = TraceID.newTraceId();
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SpanServiceTest {
|
||||
@Before
|
||||
public void before() throws TException {
|
||||
Span span = createRootSpan();
|
||||
logger.debug("uuid:{}", new UUID(span.getMostTraceID(), span.getLeastTraceID()));
|
||||
logger.debug("uuid:{}", new UUID(span.getMostTraceId(), span.getLeastTraceId()));
|
||||
insert(span);
|
||||
deleteSpans.add(span);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class SpanServiceTest {
|
||||
|
||||
|
||||
private void doRead(Span span) {
|
||||
UUID uuid = new UUID(span.getMostTraceID(), span.getLeastTraceID());
|
||||
UUID uuid = new UUID(span.getMostTraceId(), span.getLeastTraceId());
|
||||
|
||||
List<SpanAlign> sort = spanService.selectSpan(uuid.toString());
|
||||
for (SpanAlign spanAlign : sort) {
|
||||
@@ -129,8 +129,8 @@ public class SpanServiceTest {
|
||||
List<Annotation> ano = Collections.emptyList();
|
||||
long time = System.currentTimeMillis();
|
||||
int andIncrement = id.getAndIncrement();
|
||||
Span sub = new Span("UnitTest", time, span.getMostTraceID(), span.getLeastTraceID(), "test", "rpc" + andIncrement, andIncrement, ano, "protocol:ip:port", false);
|
||||
sub.setParentSpanId(span.getSpanID());
|
||||
Span sub = new Span("UnitTest", time, span.getMostTraceId(), span.getLeastTraceId(), "test", "rpc" + andIncrement, andIncrement, ano, "protocol:ip:port", false);
|
||||
sub.setParentSpanId(span.getSpanId());
|
||||
return sub;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user