Skip to content

Conversation

@leeandher
Copy link
Member

Extend the error generator to support multiple Sentry issue types beyond errors. This adds an issue type selector with Error and Performance options (user feedback and dead clicks shown as coming soon).

The Performance issue type generates N+1 API call detection by making parallel GET requests to a target endpoint and sending the transaction envelope directly to Sentry's API. This allows testing performance issue detection in any Sentry project via DSN.

Changes:

  • Issue type definitions and selector component
  • Performance target endpoint with configurable delay (clamped 0-5000ms)
  • Performance fields component for configuring call count and delay
  • Direct transaction envelope submission to Sentry API (bypasses SDK to allow custom DSN)
  • Backwards-compatible config migration for existing saved configurations

The N+1 detection follows Sentry's requirements: minimum 10 parallel GET requests with http.client spans within a ui.action transaction.

Extend the error generator to support multiple Sentry issue types beyond
errors. Adds an issue type selector with Error and Performance options
(user feedback and dead clicks shown as coming soon).

The Performance issue type generates N+1 API call detection by making
parallel GET requests to a target endpoint and sending the transaction
envelope directly to Sentry's API. This allows testing performance issue
detection in any Sentry project via DSN.

New files:
- Issue type definitions and configs
- Performance target endpoint with configurable delay
- Issue type selector and performance fields components

Config storage includes backwards-compatible migration for existing
saved configurations.

Co-Authored-By: Claude <noreply@anthropic.com>
@leeandher leeandher requested a review from a team as a code owner January 14, 2026 22:25
@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
error-generator Ready Ready Preview, Comment Jan 14, 2026 10:26pm

const id = searchParams.get('id') || '0';

const clampedDelay = Math.min(Math.max(delay, 0), 5000);
await new Promise((resolve) => setTimeout(resolve, clampedDelay));

Check failure

Code scanning / CodeQL

Resource exhaustion High

This creates a timer with a user-controlled duration from a
user-provided value
.

Copilot Autofix

AI 5 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@leeandher leeandher merged commit a25fe5e into main Jan 14, 2026
6 of 7 checks passed
@leeandher leeandher deleted the feat/performance-issue-types branch January 14, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants