v0.6.54: mothership tracing, db pool size increase#4264
Conversation
* fix(db): raise db pool size * Raise socket connections * bump up connection size even more
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Refactors Updates persistence behavior so stopped turns can store Reviewed by Cursor Bugbot for commit d927d8b. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d927d8b. Configure here.
Greptile SummaryThis PR adds end-to-end OTel mothership tracing across the Sim↔Go copilot path — new span utilities (
Confidence Score: 4/5Functionally safe to ship; the span leak on error paths only affects telemetry completeness, not user-visible behavior. One P1 finding (root OTel span leaked on branch-resolution failure paths in apps/sim/lib/copilot/chat/post.ts — early-return paths need Important Files Changed
Sequence DiagramsequenceDiagram
participant Browser
participant SimAPI as Sim API (Next.js)
participant OtelRoot as OTel Root Span<br/>(gen_ai.agent.execute)
participant Go as Go Mothership
participant OTLP as OTLP Backend
Browser->>SimAPI: POST /api/copilot/chat/stream
SimAPI->>OtelRoot: startCopilotOtelRoot() [ROOT_CONTEXT]
SimAPI->>SimAPI: resolveBranch() [withCopilotSpan]
alt branch is NextResponse (error)
SimAPI-->>Browser: early return (span NOT finished)
else branch resolved
SimAPI->>SimAPI: persistUserMessage [withCopilotSpan]
SimAPI->>SimAPI: buildPayload [withCopilotSpan]
SimAPI->>Browser: SSE Response + traceparent header
SimAPI->>Go: fetchGo(url) + W3C traceparent injected
Go-->>SimAPI: SSE stream
SimAPI->>OtelRoot: finish() on stream end
end
OtelRoot-->>OTLP: BatchSpanProcessor export
Browser->>SimAPI: GET /api/copilot/chat/stream (reconnect)
SimAPI->>SimAPI: contextFromRequestHeaders() -> child of original trace
SimAPI->>SimAPI: poll/replay loop [rootSpan]
SimAPI-->>Browser: SSE replay
SimAPI->>SimAPI: rootSpan.end()
Reviews (1): Last reviewed commit: "fix(db): raise db pool size (#4263)" | Re-trigger Greptile |

Uh oh!
There was an error while loading. Please reload this page.