Skip to content

fix(react-router): Use react-router's own instrumentation types instead of a mirrored copy - #23310

Merged
logaretm merged 1 commit into
developfrom
awad/react-router-instrumentation-types-drift
Aug 24, 2026
Merged

logaretm merged 1 commit into
developfrom
awad/react-router-instrumentation-types-drift

Conversation

@logaretm

@logaretm logaretm commented Aug 11, 2026

Copy link
Copy Markdown
Member

Types createSentryServerInstrumentation() / createSentryClientInstrumentation() against react-router's own exported ServerInstrumentation / ClientInstrumentation types instead of a hand-maintained mirror that had drifted.

The vendored types were internal-only, so deleting it isn't a public API change, and runtime should be unaffected.

closes #23265

@logaretm

Copy link
Copy Markdown
Member Author

bugbot run

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.33 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.35 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.24 kB - -
@sentry/browser (incl. Tracing, Replay) 87.73 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.19 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.44 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.12 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.51 kB - -
@sentry/vue 35.4 kB - -
@sentry/vue (incl. Tracing) 50.31 kB - -
@sentry/svelte 28.6 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 48.87 kB - -
CDN Bundle (incl. Logs, Metrics) 32.54 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.74 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.91 kB - -
CDN Bundle (incl. Tracing, Replay) 86.33 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94 kB - -
CDN Bundle - uncompressed 89.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.13 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 151.81 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.18 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.4 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.09 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 284.76 kB - -
@sentry/nextjs (client) 53.05 kB - -
@sentry/sveltekit (client) 48.74 kB - -
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.11 kB - -
@sentry/node 117.49 kB +0.03% +24 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +23 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +19 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.33 kB - -

View base workflow run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 85f2783. Configure here.

Comment thread packages/react-router/src/client/createClientInstrumentation.ts
@logaretm
logaretm marked this pull request as ready for review August 11, 2026 19:12
@logaretm
logaretm requested a review from a team as a code owner August 11, 2026 19:12
@logaretm
logaretm requested review from chargome and s1gr1d and removed request for a team August 11, 2026 19:12
@github-actions

Copy link
Copy Markdown
Contributor

👋 @chargome, @s1gr1d — Please review this PR when you get a chance!

2 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

👋 @chargome, @s1gr1d — Please review this PR when you get a chance!

@github-actions

Copy link
Copy Markdown
Contributor

👋 @chargome, @s1gr1d — Please review this PR when you get a chance!

@logaretm
logaretm force-pushed the awad/react-router-instrumentation-types-drift branch from 85f2783 to 6903c9c Compare August 24, 2026 15:17
@logaretm
logaretm force-pushed the awad/react-router-instrumentation-types-drift branch from 6903c9c to 27d52a1 Compare August 24, 2026 17:07
@logaretm
logaretm merged commit 9ce61f7 into develop Aug 24, 2026
50 checks passed
@logaretm
logaretm deleted the awad/react-router-instrumentation-types-drift branch August 24, 2026 18:38
JPeer264 pushed a commit that referenced this pull request Aug 25, 2026
…ad of a mirrored copy (#23310)

Types `createSentryServerInstrumentation()` /
`createSentryClientInstrumentation()` against react-router's own
exported `ServerInstrumentation` / `ClientInstrumentation` types instead
of a hand-maintained mirror that had drifted.

The vendored types were internal-only, so deleting it isn't a public API
change, and runtime should be unaffected.

closes #23265
logaretm added a commit that referenced this pull request Aug 27, 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

2 participants