`SpanProcessor` incorrect calls to `SpanExporter::forceFlush()`
SimpleSpanProcessor::forceFlush()has to force-flush exporterBatchSpanProcessor::onEnd()shouldn't force-flush exporter
I agree with SimpleSpanProcessor::forceFlush(), but the conditional flush in BatchSpanProcessor::onEnd() seems critical to the batching functionality. Is the issue that we're using the forceFlush() mechanism not for its intended purpose?
The batching functionality doesn't depend on force-flushing; the batch processor should still call ::export() with the batch in ::onEnd(), just without calling ::forceFlush() afterwards.
ForceFlush SHOULD only be called in cases where it is absolutely necessary, such as when using some FaaS providers that may suspend the process after an invocation, but before the exporter exports the completed spans.
I would like to work on this one. Can you please assign it to me. thanks
Fixed by #788