Skip to content

[skill-drift] sentry-nextjs-sdk may need updates #40

@github-actions

Description

@github-actions

SDK Changes Detected

The following PRs were merged to getsentry/sentry-javascript in the last 7 days that may affect the sentry-nextjs-sdk skill:

Potential Skill Gaps

  1. New Config Option: PR #19604 adds a new _experimental.turbopackReactComponentAnnotation option to withSentryConfig() that is not documented in the skill:

    // next.config.ts
    export default withSentryConfig(nextConfig, {
      _experimental: {
        turbopackReactComponentAnnotation: {
          enabled: true,
          ignoredComponents: ['Header', 'Footer'], // optional
        },
      },
    });

    When enabled, JSX elements are annotated with data-sentry-component, data-sentry-element, and data-sentry-source-file attributes at build time. This enables:

    • Searching Replays by React component name
    • Component names in breadcrumbs
    • Component-level performance monitoring

    Requires Next.js 16+ (specifically supportsTurbopackRuleCondition is gated on Next.js ≥16). The skill currently says "15+ needed for Turbopack support" — this new feature raises the bar to 16+ for component annotation.

  2. Missing Config Option: The withSentryConfig options table in the skill (SKILL.md around line 438) lists _experimental.turbopackApplicationKey and _experimental.vercelCronsMonitoring but is now missing _experimental.turbopackReactComponentAnnotation.

Skill Files to Review

  • skills/sentry-nextjs-sdk/SKILL.md — Phase 1 detect table (Next.js version), Phase 3 withSentryConfig options table
  • skills/sentry-nextjs-sdk/references/session-replay.md — component annotation enables searching replays by component name

Priority

MEDIUM — new opt-in experimental feature for Turbopack users that enhances Session Replay and error debugging with component context.

Generated by SDK Skill Drift Detector ·

  • expires on Mar 21, 2026, 9:08 PM UTC

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions