feat: telemetry propagation, span links and metrics; telemetry member in chord/context

- pi-telemetry: TelemetryPropagation (inject/extract, opaque carriers), span links (SpanOptions.links, addLink),
  TelemetryMetrics (counter, up-down counter, histogram), typed metric schemas (createTypedMetrics), in-memory
  measurement log, conformance tests for propagation and metrics
- chord/context: fixed Context.telemetry member (NOOP default), withTelemetry, traceIn
- durable: HarnessOptions.telemetry option type (no instrumentation yet)
This commit is contained in:
Mario Zechner 2026-10-18 20:36:08 +00:00
parent 482c1381a0
commit 48909d987a
25 changed files with 1226 additions and 23 deletions

View file

@ -59,8 +59,9 @@ const BUDGETS = {
".": {
// Tool argument validation reaches TypeBox; provider-session creation reaches pi-ai's lean UUID utility; the
// memory and SQLite storages share scan order and cursor handling. Values from Chord's root (copyJson,
// replicatedState) reach its host runtime through the root barrel.
maxFiles: 66,
// replicatedState) reach its host runtime through the root barrel. Chord's context reaches pi-telemetry's root
// (index, noop, metrics, memory) for its NOOP telemetry default.
maxFiles: 70,
forbid: [
"packages/ai/src/index.ts",
"packages/ai/src/utils/typebox-helpers.ts",