Skip to content

Commit 861af6f

Browse files
committed
Remove incorrect check which only exported spans with links
1 parent 41e38e7 commit 861af6f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dd-trace-core/src/main/java/datadog/trace/core/otlp/trace/OtlpTraceProtoCollector.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,10 @@ private void completeScope() {
165165
private void completeSpan() {
166166

167167
// add span message prefix to its nested chunks and promote to scoped
168-
if (spanBytes > 0) {
169-
byte[] spanPrefix = recordSpanMessage(buf, currentSpan, metaWriter, spanBytes);
170-
scopedChunks.add(spanPrefix);
171-
scopedChunks.addAll(spanChunks);
172-
scopedBytes += spanPrefix.length + spanBytes;
173-
}
168+
byte[] spanPrefix = recordSpanMessage(buf, currentSpan, metaWriter, spanBytes);
169+
scopedChunks.add(spanPrefix);
170+
scopedChunks.addAll(spanChunks);
171+
scopedBytes += spanPrefix.length + spanBytes;
174172

175173
// reset temporary elements for next span
176174
currentSpan = null;

0 commit comments

Comments
 (0)