altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

fix: tracing exporter timeout leaks timers and blocks process exit

Open anandgupta42 opened this issue 8 months ago • 0 comments

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.

anandgupta42 avatar Mar 16 '26 20:03 anandgupta42