Commit Graph

2 Commits

Author SHA1 Message Date
JackChen 8f7fc2019b fix: guard async onTrace callbacks against unhandled rejection
Detect when onTrace returns a Promise and .catch() the rejection,
preventing unhandled promise rejection from crashing the process.
Addresses Codex review feedback on PR #40.
2026-04-03 15:13:35 +08:00
JackChen f4d3bb4e8d feat: add onTrace observability callback (#18)
Add a lightweight onTrace callback to OrchestratorConfig that emits
structured span events for LLM calls, tool executions, task lifecycle,
and agent lifecycle. Zero overhead when not subscribed, zero new
dependencies.
2026-04-03 15:07:09 +08:00