Commit 8d7ade9
fix: [AI-190] prevent tracing exporter timeout from leaking timers (#191)
- Add `clearTimeout` in `.finally()` to `withTimeout` so the event loop
exits immediately after `endTrace()` instead of hanging for 5 seconds
- Log a `console.warn` when an exporter times out (uses the previously
unused `name` parameter for diagnostics)
- Align `HttpExporter` internal `AbortSignal.timeout` from 10s to 5s to
match the per-exporter wrapper timeout
- Clean up safety-net timer in adversarial test to prevent open handles
Closes #190
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9d47f1e commit 8d7ade9
File tree
3 files changed
+38
-16
lines changed- .github/meta
- packages/opencode
- src/altimate/observability
- test/altimate
3 files changed
+38
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
739 | 752 | | |
740 | 753 | | |
741 | 754 | | |
742 | | - | |
| 755 | + | |
743 | 756 | | |
744 | 757 | | |
745 | 758 | | |
| |||
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
554 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
555 | 559 | | |
556 | 560 | | |
557 | | - | |
558 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
559 | 565 | | |
560 | | - | |
561 | | - | |
562 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
| |||
0 commit comments