We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b83b0c9 commit 10b22f9Copy full SHA for 10b22f9
packages/dd-trace/test/span_processor.spec.js
@@ -93,12 +93,14 @@ describe('SpanProcessor', () => {
93
assert.deepStrictEqual(finishedSpan.context()._tags, {})
94
})
95
96
- it('should skip traces with unfinished spans', () => {
+ it('should not flush a partial trace below the flushMinSpans threshold', () => {
97
trace.started = [activeSpan, finishedSpan]
98
trace.finished = [finishedSpan]
99
processor.process(finishedSpan)
100
101
sinon.assert.notCalled(exporter.export)
102
+ assert.deepStrictEqual(trace.started, [activeSpan, finishedSpan])
103
+ assert.deepStrictEqual(trace.finished, [finishedSpan])
104
105
106
it('should skip unrecorded traces', () => {
0 commit comments