spanFinished(span) {
		if (!this.ddTracer) return null;

		const item = span.meta.datadog;
		if (!item) return null;

		const ddSpan = item.span;

		if (span.error) {
			this.addTags(ddSpan, "error", this.errorToObject(span.error));
		}

		this.addLogs(ddSpan, span.logs);

		ddSpan.finish(span.finishTime);

		if (item.oldSpan) {
			this.ddScope._spans[item.asyncId] = item.oldSpan;
		} else {
			delete this.ddScope._spans[item.asyncId];
		}
	}
Span is finished.

@param {Span} span
@memberof DatadogTraceExporter