fix(mcp): attach mcp_tool/error_code to the remote sink's exception capture - #10236
Conversation
…apture The remote MCP telemetry sink's captureException call named these two grouping properties in a comment but never actually sent them, so a PostHog exception breakdown by tool/cause silently dropped the surface with the most traffic while the stdio and miner sinks kept reporting. Extend capturePostHogWorkerError with an optional, scrubbed extra properties argument and pass mcp_tool/error_code through it, matching the other two sinks property-for-property. The HTTP middleware path keeps its existing request_path/request_method shape unchanged.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 13:47:35 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10236 +/- ##
==========================================
+ Coverage 80.47% 80.50% +0.02%
==========================================
Files 282 284 +2
Lines 58856 58924 +68
Branches 6978 7002 +24
==========================================
+ Hits 47366 47434 +68
Misses 11199 11199
Partials 291 291
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(mcp): attach mcp_tool/error_code to the remote sink's exception capture
The remote MCP telemetry sink's captureException call named these two
grouping properties in a comment but never actually sent them, so a
PostHog exception breakdown by tool/cause silently dropped the surface
with the most traffic while the stdio and miner sinks kept reporting.
Extend capturePostHogWorkerError with an optional, scrubbed extra
properties argument and pass mcp_tool/error_code through it, matching
the other two sinks property-for-property. The HTTP middleware path
keeps its existing request_path/request_method shape unchanged.
Closes #10037