generateTracingData() {
		if (isFunction(this.opts.spanConverter))
			return this.queue.map(span => this.opts.spanConverter.call(this, span));

		return Array.from(this.queue).map(span => {
			const newSpan = Object.assign({}, span);
			if (newSpan.error) newSpan.error = this.errorToObject(span.error);

			return newSpan;
		});
	}
Generate tracing data with custom converter

@returns {Array<Object>}
@memberof EventTraceExporter