altimate-code
altimate-code copied to clipboard
fix: tracing exporter timeout leaks timers and blocks process exit
The withTimeout helper in endTrace() creates setTimeout timers but never clears them when exporters resolve early. This keeps the event loop alive for up to 5 seconds after every trace export, delaying CLI process exit. Additionally, the HttpExporter internal timeout (10s) exceeds the per-exporter wrapper timeout (5s), making the inner timeout unreachable.