feat(tanstackstart-react): Enable component tracking#21149
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
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>
9aa6bc5 to
5d46103
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
s1gr1d
approved these changes
May 26, 2026
nicohrubec
added a commit
that referenced
this pull request
May 26, 2026
#21148) Using `Sentry.replayIntegration()` in shared client/server code (e.g. `router.tsx`) causes a build error because `@sentry/node` doesn't export it (noticed this while testing #21149). Adds a no-op stub on the server side to get rid of the build error, same pattern as the existing `tanstackRouterBrowserTracingIntegration` stub. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 tasks
nicohrubec
added a commit
to getsentry/sentry-docs
that referenced
this pull request
May 28, 2026
Adds `reactComponentAnnotation` docs to the `sentryTanstackStart` Vite plugin page. Enabled in the SDK via getsentry/sentry-javascript#21149. This should be merged after the next SDK release (`10.55.0`). Also changed the structure to have a separate section for each TSS specific option and put them all one level below the `Configuration Options` section.
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.

Passes the
reactComponentAnnotationoption through tosentryVitePlugin, addingdata-sentry-componentanddata-sentry-source-fileattributes 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

Annotated

Fixes #18288