Repository navigation
fix(mcp): Keep N+1 evidence for performance issues detected from spans - #2468
Open
pcbeingused333 wants to merge 1 commit into
Open
pcbeingused333 wants to merge 1 commit into
pcbeingused333 wants to merge 1 commit into
Conversation
Span-detected performance issues are saved as generic events, so mapPerformance returned null for them and the detector evidence (transaction, parent span, repeat count, offending span IDs) was lost. Accept generic events whose occurrence is a performance issue type, and make selectN1EvidenceSpans fall back to the offending span IDs when the event has no spans entry and no trace was fetched. Fixes getsentry#2467 Co-Authored-By: Claude Code <noreply@anthropic.com>
|
@pcbeingused333 is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2467
get_issue_detailsdropped the N+1 detector evidence for performance issues that Sentry detects from spans. Those issues are saved asgenericevents, andmapPerformancereturnednullunlessevent.type === "transaction", so the transaction, parent span, repeat count and offending span IDs never reached the response.Fix
mapPerformancealso acceptsgenericevents whose occurrence maps to aperformance_*issue type. Other generic occurrences (metric alerts, regressions) still leaveperformancenull.selectN1EvidenceSpansnow falls back to the offending span IDs when there is no trace data and nospansentry on the event, as its doc comment already describes. Before, it returned an empty list.Tests
issue-event-payload.test.ts: a generic event with a 1006 occurrence keeps issue type, transaction name, parent operation, repeat count and the offending spans; a generic 8001 occurrence keepsperformancenull.formatting.test.ts:selectN1EvidenceSpanswithout trace or spans returns the offending span IDs.Both new tests fail on main and pass with the change; the full mcp-core suite passes.
This pull request was prepared with AI assistance (Claude Code) and has not been reviewed line by line by a human.