docs(agent-workflows): redesign trace continuation - #5484
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 The AI agent says: This draft needs two product calls before implementation:
Please also challenge the transport ownership decision: |
Context
Issue #5097 proposes joining the multiple HTTP requests behind one approval- or client-tool-resumed assistant turn into one OpenTelemetry trace.
The original design correctly found that the SDK already accepts inbound W3C
traceparent, but its Small estimate omitted several current-system constraints: the browser still needs the response span id, request preparation replaces candidate transport headers, message usage is overwritten on each resume, and both trace-query paths cache a found trace as immutable even while later continuation spans are still being ingested.This draft re-audits the proposal against current
mainand turns it into an implementation-ready complexity assessment. It changes documentation only.Changes
spanIdandtraceparentas transport-owned protocol context instead of persistent UI-message metadata.{input:0, output:0, total:~62k}guard.Complexity conclusion
Tests / notes
pnpm exec prettier --checkfor the new v2 design, complexity plan, and rewritten status: passed.git diff --check: passed.Decisions requested
What to review
trace-continuation-v2.mdfor the contract and end-to-end flow.trace-continuation-complexity.mdfor slices, risks, test matrix, estimates, and rollout order.Related to #5097.