feat(copilot): attribute tool metrics to invoking agents - #6266
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Stream handling adds optional Metrics and traces extend Reviewed by Cursor Bugbot for commit 560fa26. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR preserves invoking-agent attribution through Copilot tool handling and applies a shared bounded normalization policy to tool metrics and spans.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported unbounded span-label issue is fixed because both tool metrics and spans now use the same catalog-backed normalization.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/copilot/request/handlers/tool.ts | Propagates event-scope agent IDs into main and subagent tool-call state while retaining the initial attribution during replay. |
| apps/sim/lib/copilot/request/metrics.ts | Adds a catalog-derived bounded agent-name normalizer and includes the normalized value in tool metrics. |
| apps/sim/lib/copilot/request/otel.ts | Applies the shared agent-name normalization to Copilot tool spans, resolving the previously reported unbounded-label issue. |
| apps/sim/lib/copilot/request/tools/executor.ts | Forwards stored agent attribution to both span and metric emission across success and error paths. |
Reviews (2): Last reviewed commit: "fix(copilot): bound tool span agent labe..." | Re-trigger Greptile
b81c66e to
560fa26
Compare
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 560fa26. Configure here.
Summary
mainand collapse unknown labels tootherType of Change
Testing
bun run lintChecklist