Eric Traut
2edad72de3
Track prompt cache write token usage ( #33454 )
...
## What changed
- Parse `cache_write_tokens` from response input token details and carry it through token usage aggregation.
- Expose `cache_write_input_tokens` in protocol, app-server, exec, and TypeScript SDK usage events, defaulting it to zero for compatibility with older payloads.
- Report cache-write usage in analytics, metrics, traces, and rollout data alongside existing cache-read usage.
## Testing
- Add coverage for response parsing, usage event output, aggregation, analytics, metrics, and telemetry fields.
GitOrigin-RevId: 634e4fbe3086a8923c0ee13b622573e7d9d221bd
2026-07-16 00:22:53 +00:00
..
2026-07-14 21:54:24 +00:00
2026-06-25 18:15:48 -07:00
2026-07-08 17:50:18 +00:00
2026-07-08 14:13:59 -07:00
2026-07-09 00:17:38 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 06:39:42 +00:00
2026-07-08 00:15:49 +00:00
2026-05-28 14:54:39 -07:00
2026-07-06 10:17:15 -07:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-15 05:21:13 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 01:49:16 +00:00
2026-06-27 19:34:10 +00:00
2026-07-08 14:13:59 -07:00
2026-07-08 14:13:59 -07:00
2026-07-08 14:13:59 -07:00
2026-07-08 14:13:59 -07:00
2026-07-15 22:49:52 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 14:13:59 -07:00
2026-07-15 20:59:21 +00:00
2026-07-09 12:25:19 +09:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 14:13:59 -07:00
2026-07-08 00:15:49 +00:00
2026-07-15 10:18:51 +00:00
2026-07-14 04:41:08 +00:00
2026-07-08 00:15:49 +00:00
2026-07-15 20:59:21 +00:00
2026-07-10 16:11:58 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-09 12:16:15 -04:00
2026-07-11 01:11:37 +00:00
2026-07-10 21:13:38 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 22:43:26 +00:00
2026-07-15 05:59:37 +00:00
2026-07-08 14:13:59 -07:00
2026-07-08 00:15:49 +00:00
2026-07-15 21:25:24 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-15 15:29:13 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 04:41:08 +00:00
2026-07-14 04:41:08 +00:00
2026-07-08 14:13:59 -07:00
2026-07-14 21:01:54 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-15 02:35:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 14:13:59 -07:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-07-08 00:15:49 +00:00
2026-05-12 18:40:53 -07:00
2026-07-15 21:25:24 +00:00
2026-07-16 00:22:53 +00:00
2026-07-15 15:29:13 +00:00
2026-07-14 04:41:08 +00:00
2026-07-08 14:13:59 -07:00
2026-07-15 15:29:13 +00:00
2026-07-14 00:38:04 +00:00
2026-07-15 21:25:24 +00:00
2026-07-08 14:13:59 -07:00
2026-07-08 14:13:59 -07:00
2026-07-08 14:13:59 -07:00
2026-07-14 06:39:42 +00:00
2026-07-08 14:13:59 -07:00
2026-07-13 23:37:35 +00:00
2026-07-08 00:15:49 +00:00