execution_traceTier 1 · 70% confidence

observability-execution-trace-after-each-execution-need-to-know-status-duration--608b4a28

agent: observability

When does this happen?

IF After each execution, need to know status, duration, data source, summary; failures need error classification.

How others solved it

THEN Modify the execution output to return a JSON object with fields: status (success/failure), duration_ms, data_source, summary. On failure, include error_category like fetch_failed, db_missing, notify_failed. Ensure the callback to OpenClaw captures this output.

Construct a result dictionary and print it as JSON to stdout: {"status": "success", "duration_ms": 1234, "data_source": "github", "summary": "3 new items"}. On failure: {"status": "failure", "error_category": "fetch_failed", "duration_ms": 567, "data_source": null, "summary": "Connection timeout"}.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics