Skip to content

feat(tanstackstart-react): Enable component tracking#21149

Draft
nicohrubec wants to merge 5 commits into
developfrom
feat/tanstack-start-component-annotation
Draft

feat(tanstackstart-react): Enable component tracking#21149
nicohrubec wants to merge 5 commits into
developfrom
feat/tanstack-start-component-annotation

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented May 24, 2026

Passes the reactComponentAnnotation option through to sentryVitePlugin, adding data-sentry-component and data-sentry-source-file attributes to React components at build time for better component names in Session Replay and breadcrumbs.

Had a look at a replay in Sentry with this enabled and disabled and seems to do it's job.

Not annotated
Screenshot 2026-05-24 at 11 16 41

Annotated
Screenshot 2026-05-24 at 11 16 23

Fixes #18288

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 99bec8b. Configure here.

Comment thread packages/tanstackstart-react/src/vite/sourceMaps.ts
nicohrubec and others added 4 commits May 24, 2026 11:35
Passes the `reactComponentAnnotation` option through to `sentryVitePlugin`, enabling `data-sentry-component` and `data-sentry-source-file` attributes on React components at build time.

Fixes #18288

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the feat/tanstack-start-component-annotation branch from 9aa6bc5 to 5d46103 Compare May 24, 2026 09:35
@nicohrubec nicohrubec changed the base branch from fix/tanstack-start-replay-server-stub to develop May 24, 2026 09:35
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec changed the title feat(tanstackstart-react): Add reactComponentAnnotation support feat(tanstackstart-react): Enable component tracking May 24, 2026
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.

Enable Component Tracking

1 participant