This commit is contained in:
lican 2018-05-05 23:02:36 +08:00 committed by 吴晟 Wu Sheng
parent 6cb266b6bd
commit 4714f0e19e
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,6 @@ public class TraceSegmentRef {
TraceSegmentReference.Builder refBuilder = TraceSegmentReference.newBuilder();
if (SegmentRefType.CROSS_PROCESS.equals(type)) {
refBuilder.setRefType(RefType.CrossProcess);
refBuilder.setParentApplicationInstanceId(parentApplicationInstanceId);
if (peerId == DictionaryUtil.nullValue()) {
refBuilder.setNetworkAddress(peerHost);
} else {
@ -133,6 +132,7 @@ public class TraceSegmentRef {
refBuilder.setRefType(RefType.CrossThread);
}
refBuilder.setParentApplicationInstanceId(parentApplicationInstanceId);
refBuilder.setEntryApplicationInstanceId(entryApplicationInstanceId);
refBuilder.setParentTraceSegmentId(traceSegmentId.transform());
refBuilder.setParentSpanId(spanId);