提交 9f4532c0 编写于 作者: A ascrutae

fix miss transform ref data for each span issue

上级 ad5fd073
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* *
*/ */
package org.apache.skywalking.apm.agent.core.context.trace; package org.apache.skywalking.apm.agent.core.context.trace;
import java.util.LinkedList; import java.util.LinkedList;
...@@ -280,6 +279,11 @@ public abstract class AbstractTracingSpan implements AbstractSpan { ...@@ -280,6 +279,11 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
spanBuilder.addLogs(log.transform()); spanBuilder.addLogs(log.transform());
} }
} }
if (this.refs != null) {
for (TraceSegmentRef ref : this.refs) {
spanBuilder.addRefs(ref.transform());
}
}
return spanBuilder; return spanBuilder;
} }
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
package org.apache.skywalking.apm.agent.core.context.trace; package org.apache.skywalking.apm.agent.core.context.trace;
import org.apache.skywalking.apm.agent.core.dictionary.DictionaryUtil; import org.apache.skywalking.apm.agent.core.dictionary.DictionaryUtil;
import org.apache.skywalking.apm.network.proto.SpanObject;
import org.apache.skywalking.apm.network.trace.component.Component; import org.apache.skywalking.apm.network.trace.component.Component;
/** /**
...@@ -127,16 +126,6 @@ public class EntrySpan extends StackBasedTracingSpan { ...@@ -127,16 +126,6 @@ public class EntrySpan extends StackBasedTracingSpan {
return false; return false;
} }
@Override public SpanObject.Builder transform() {
SpanObject.Builder builder = super.transform();
if (refs != null) {
for (TraceSegmentRef ref : refs) {
builder.addRefs(ref.transform());
}
}
return builder;
}
private void clearWhenRestart() { private void clearWhenRestart() {
this.componentId = DictionaryUtil.nullValue(); this.componentId = DictionaryUtil.nullValue();
this.componentName = null; this.componentName = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册