feat(diagnostics): emit model call events

Emit structured diagnostic events for embedded run and model-call lifecycle with trace context, duration, and safe error categories.
This commit is contained in:
Vincent Koc
2026-04-24 02:17:07 -07:00
committed by GitHub
parent e5f55dd024
commit 0e7250f37b
8 changed files with 535 additions and 20 deletions

View File

@@ -815,6 +815,11 @@ export function createDiagnosticsOtelService(): OpenClawPluginService {
case "tool.execution.started":
case "tool.execution.completed":
case "tool.execution.error":
case "run.started":
case "run.completed":
case "model.call.started":
case "model.call.completed":
case "model.call.error":
case "diagnostic.memory.sample":
case "diagnostic.memory.pressure":
case "payload.large":