GareArc
d858cbdc0c
feat(telemetry): add input/output token split to enterprise OTEL traces
- Add PROMPT_TOKENS and COMPLETION_TOKENS to WorkflowNodeExecutionMetadataKey
- Store prompt/completion tokens in node execution metadata JSON (no schema change)
- Calculate workflow-level token split by summing node executions on-the-fly
- Export gen_ai.usage.input_tokens and output_tokens to enterprise telemetry
- Add semantic convention constants for token attributes
- Maintain backward compatibility (historical data shows null)
BREAKING: None
MIGRATION: None (uses JSON metadata, no schema changes)
2026-02-03 19:27:11 -08:00
..
2026-01-13 12:46:33 +08:00
2026-02-02 15:50:43 -08:00
2025-09-18 12:49:10 +08:00
2025-12-09 14:41:46 +08:00
2026-01-06 23:57:20 +09:00
2026-01-06 15:23:50 +08:00
2026-01-06 23:57:20 +09:00
2025-09-15 13:06:33 +08:00
2025-10-10 23:41:16 +08:00
2025-09-15 13:06:33 +08:00
2026-01-06 14:53:38 +08:00
2026-01-06 14:33:27 +08:00
2025-12-15 11:29:28 +08:00
2026-02-02 15:50:43 -08:00
2026-01-06 23:57:20 +09:00
2025-10-28 09:59:30 +08:00
2026-01-13 12:46:33 +08:00
2025-11-13 15:21:44 +08:00
2026-02-03 19:27:11 -08:00
2026-01-06 23:57:20 +09:00
2025-12-09 14:41:46 +08:00
2026-01-06 23:57:20 +09:00
2025-10-21 11:26:58 +08:00
2026-01-06 23:57:20 +09:00
2026-02-02 15:50:43 -08:00
2025-12-24 19:15:54 +08:00
2026-01-06 23:57:20 +09:00
2026-02-03 19:27:11 -08:00
2025-09-10 01:54:26 +08:00
2026-01-08 13:17:30 +08:00
2025-12-24 11:21:51 +08:00
2025-12-09 14:41:46 +08:00
2026-01-08 13:17:30 +08:00