mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-10-19 07:23:59 +00:00
- pi-ai: AI_TELEMETRY_SCHEMA; pi.ai.request and pi.ai.poll spans around Models requests via a lazyStream observer (no provider changes), first_chunk and block events (never per delta), usage/cost end attributes, provider_error status with a bounded message, aborted stays ok; duration, first-chunk, token and cost metrics; option renamed telemetryContext -> telemetry (a parent span) - pi-telemetry: TelemetryContext carries readonly metrics and propagation capabilities on every span - chord/context: Context.telemetry is always a TelemetrySpan (NOOP default); withTelemetry takes spans - durable: DURABLE_TELEMETRY_SCHEMA; pi.durable.submit (inputs start their own trace linked to the caller) and pi.durable.phase spans for every task phase; stored carriers on submissions and tasks (TaskOptions.trace, links); entry, submission, checkpoint, replay and report events after commit; resumed tasks stay in their trace; phase duration, active task and report metrics; failed phases carry fixed categories with bounded messages |
||
|---|---|---|
| .. | ||
| conformance.test.ts | ||
| metrics.test.ts | ||
| propagation-worker.ts | ||
| propagation.test.ts | ||
| telemetry.test.ts | ||