diff options
| author | Adam Malczewski <[email protected]> | 2026-06-05 15:52:42 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-05 15:52:42 +0900 |
| commit | dded4cc5570f47167edf3ea36f232ad4a32bcbc4 (patch) | |
| tree | dbcb57a7daad05b6daa6e24d0e192c47e036890a /packages/kernel/src/runtime | |
| parent | 2bf8f9ec9714cbd33a0ecfb7b40dd7a335180fb7 (diff) | |
| download | dispatch-dded4cc5570f47167edf3ea36f232ad4a32bcbc4.tar.gz dispatch-dded4cc5570f47167edf3ea36f232ad4a32bcbc4.zip | |
feat(observability): host-bin supervises the collector (spawn-first / drain-last / restart) — 288 tests
host-bin spawns the out-of-process collector before serving (real Bun.spawn adapted to a ChildHandle), restarts on unexpected exit (backoff + restart-guard cap), drains on SIGINT/SIGTERM (collector final-drain, SIGKILL fallback on timeout). createCollectorSupervisor takes an injected spawn so the lifecycle is unit-tested with a fake (no real subprocess). Collector failures never crash the app (D3 subordinate/fail-safe). New env DISPATCH_TRACE_DB (default ./.dispatch-data/traces.db).
Verified: tsc -b clean, 288 tests (279 + 9 supervisor), biome 0/0. Live (clean single run): 1 collector during, trace DB auto-populated (nested easy-view), 0 collectors after shutdown.
Diffstat (limited to 'packages/kernel/src/runtime')
0 files changed, 0 insertions, 0 deletions
