flushOTel():Defined in: src/genai/flush.ts:15 Force-flush any GenAI spans buffered by the active span processor. Resolves immediately ifPromise<void>
weave.init() has not been called. Otherwise
delegates to BasicTracerProvider.forceFlush(), which waits for the
underlying span processor to drain its queue and complete its OTLP export
round-trip.
Call before process exit when using 'simple' or any other processor that
may have in-flight work, or in tests that need to observe exported spans
synchronously.
Returns
Promise<void>