- TypeScript
- Python
- The stream bridge decouples chunk forwarding from span lifetime — the span stays open until the wrapped function returns after the last chunk.
- Wait for the wrapped invocation to finish before relying on
runIdor assuming the span is closed. - Replace the queue or
ReadableStreamexample with whatever your framework uses to write SSE events.

