Remove global traceId in Segment.

This commit is contained in:
wusheng 2017-07-03 23:05:10 +08:00
parent 1f3f25d691
commit b68c7b4368
2 changed files with 3 additions and 8 deletions

View File

@ -19,10 +19,9 @@ message UpstreamSegment {
message TraceSegmentObject {
string traceSegmentId = 1;
repeated TraceSegmentReference refs = 2;
repeated string globalTraceIds = 3;
repeated SpanObject spans = 4;
int32 applicationId = 5;
int32 applicationInstanceId = 6;
repeated SpanObject spans = 3;
int32 applicationId = 4;
int32 applicationInstanceId = 5;
}
message TraceSegmentReference {

View File

@ -203,10 +203,6 @@ public class TraceSegment {
traceSegmentBuilder.addRefs(ref.transform());
}
}
// globalTraceIds
for (DistributedTraceId distributedTraceId : getRelatedGlobalTraces()) {
traceSegmentBuilder.addGlobalTraceIds(distributedTraceId.get());
}
// SpanObject
for (AbstractTracingSpan span : this.spans) {
traceSegmentBuilder.addSpans(span.transform());