diff options
| author | Adam Malczewski <[email protected]> | 2026-06-05 15:16:14 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-05 15:16:14 +0900 |
| commit | 20c6c675a11b887c603be5ff08165cb182c7db65 (patch) | |
| tree | e57ef71daa6cb7c5c73a4bd9af5be6cafe9d2158 /package.json | |
| parent | 4d94c530406567791dbe4ab06c838a83c2e26023 (diff) | |
| download | dispatch-20c6c675a11b887c603be5ff08165cb182c7db65.tar.gz dispatch-20c6c675a11b887c603be5ff08165cb182c7db65.zip | |
feat(observability): Phase B — trace-store (SQLite) + out-of-process collector + trace CLI (345 tests)
trace-store (bun:sqlite): records+bodies schema (thin/fat split), idempotent insertRecords (FNV-1a id + INSERT OR IGNORE), getTurn/getBody, pure renderEasyView (D8 timeline skeleton), trace CLI. Its own DB, isolated from storage-sqlite.
observability-collector: out-of-process bin — tail journal -> splitLines/drainOnce -> trace-store.insertRecords; offset sidecar; at-least-once + idempotent; fail-safe; clean SIGINT/SIGTERM drain.
Build-config (orchestrator): root tsconfig refs; both excluded from vitest + added to test:bun (bun:sqlite); bun install.
Verified: tsc -b clean, 345 tests (273 vitest + 72 bun), biome 0 warnings/0 infos. Pipeline proven end-to-end: app -> journal -> collector -> SQLite -> 'trace <turnId>' easy-view. Known follow-up (next commit): kernel spans are flat (parent=ROOT) — run-turn nesting fix.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 8d19268..d46ea7f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "vitest run", "test:watch": "vitest", "typecheck": "tsc -b --pretty", - "test:bun": "bun test packages/storage-sqlite/src", + "test:bun": "bun test packages/storage-sqlite/src packages/trace-store/src packages/observability-collector/src", "test:all": "bun run test && bun run test:bun", "dev": "bun packages/host-bin/src/main.ts" }, |
