feat(chord): telemetry from pages and workers stored by the server, who a span was for

The four telemetry gaps (rows on commits, chord.host, microsecond times, a read-only store) and: pages record and
send span batches over their link to the server's ingest object (checked, capped, rate-limited, stamped browser and
with the link's principal); workers send theirs too, so the server is the store's only writer; principalAttributes
lets an app choose what a span records about its principal. The tutorial shows a real page's click traced to the
worker, with the trace viewer.
This commit is contained in:
Mario Zechner 2026-11-04 11:59:14 +00:00
parent 80f7a11494
commit ff33ef42c4
95 changed files with 3358 additions and 967 deletions

View file

@ -56,6 +56,11 @@
"types": "./dist/telemetry-sqlite/index.d.ts",
"import": "./dist/telemetry-sqlite/index.js"
},
"./telemetry-sqlite/node": {
"source": "./src/telemetry-sqlite/node.ts",
"types": "./dist/telemetry-sqlite/node.d.ts",
"import": "./dist/telemetry-sqlite/node.js"
},
"./http": {
"source": "./src/node/http/index.ts",
"types": "./dist/node/http/index.d.ts",