@Test public void testStepReturn() { trace.stepInto(); trace.stepOver(); trace.stepReturn(); Assert.assertNull(trace.getParent()); assertTrace(traceId, traceKey, zero, zero, trace); }
public void stepReturn() { if (parent == null) { return; } spanId = parent.getSpanId(); parentSpanId = parent.getParentSpanId(); parent = parent.parent; }
Trace { public void stepReturn() { if (parent == null) { return; } spanId = parent.getSpanId(); parentSpanId = parent.getParentSpanId(); parent = parent.parent; } }
Trace { public void stepReturn() { if (parent == null) { return; } spanId = parent.getSpanId(); parentSpanId = parent.getParentSpanId(); parent = parent.parent; } Trace(Long traceId, String traceKey, Long spanId, Long parentSpanId); }
Trace { public void stepReturn() { if (parent == null) { return; } spanId = parent.getSpanId(); parentSpanId = parent.getParentSpanId(); parent = parent.parent; } Trace(Long traceId, String traceKey, Long spanId, Long parentSpanId); static Trace newParentTrace(); void stepInto(); void stepOver(); void stepReturn(); Trace copy(); Long getTraceId(); void setTraceId(Long traceId); Long getSpanId(); void setSpanId(Long spanId); Long getParentSpanId(); void setParentSpanId(Long parentSpanId); String getTraceKey(); void setTraceKey(String traceKey); Trace getParent(); @Override String toString(); }
Trace { public void stepReturn() { if (parent == null) { return; } spanId = parent.getSpanId(); parentSpanId = parent.getParentSpanId(); parent = parent.parent; } Trace(Long traceId, String traceKey, Long spanId, Long parentSpanId); static Trace newParentTrace(); void stepInto(); void stepOver(); void stepReturn(); Trace copy(); Long getTraceId(); void setTraceId(Long traceId); Long getSpanId(); void setSpanId(Long spanId); Long getParentSpanId(); void setParentSpanId(Long parentSpanId); String getTraceKey(); void setTraceKey(String traceKey); Trace getParent(); @Override String toString();  }