Skip to content

fix(remix): Treat static route span names as low-cardinality names - #23504

Merged
Lms24 merged 2 commits into
lms/fix-nextjs-static-route-parameterizationfrom
lms/fix-remix-static-route-parameterization
Aug 24, 2026
Merged

fix(remix): Treat static route span names as low-cardinality names#23504
Lms24 merged 2 commits into
lms/fix-nextjs-static-route-parameterizationfrom
lms/fix-remix-static-route-parameterization

Conversation

@Lms24

@Lms24 Lms24 commented Aug 24, 2026

Copy link
Copy Markdown
Member

Same as #23503

@github-actions

github-actions Bot commented Aug 24, 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 30.3 kB - -
@sentry/browser - with treeshaking flags 28.47 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.81 kB - -
@sentry/browser (incl. Tracing) 48.6 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.61 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.49 kB - -
@sentry/browser (incl. Tracing, Replay) 88 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.4 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.72 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.43 kB - -
@sentry/browser (incl. Feedback) 47.65 kB - -
@sentry/browser (incl. sendFeedback) 35.13 kB - -
@sentry/browser (incl. FeedbackAsync) 40.28 kB - -
@sentry/browser (incl. Metrics) 31.24 kB - -
@sentry/browser (incl. Logs) 31.52 kB - -
@sentry/browser (incl. Metrics & Logs) 32.15 kB - -
@sentry/react 32.09 kB - -
@sentry/react (incl. Tracing) 50.79 kB - -
@sentry/vue 35.34 kB - -
@sentry/vue (incl. Tracing) 50.59 kB - -
@sentry/svelte 30.33 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.94 kB - -
CDN Bundle (incl. Logs, Metrics) 33.8 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.85 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.31 kB - -
CDN Bundle (incl. Tracing, Replay) 86.5 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.21 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.16 kB - -
CDN Bundle - uncompressed 93.84 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.77 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.46 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.08 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.04 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.71 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.73 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.4 kB - -
@sentry/nextjs (client) 53.34 kB +0.01% +1 B 🔺
@sentry/sveltekit (client) 49.01 kB - -
@sentry/core/server 65.41 kB - -
@sentry/core/browser 51.76 kB - -
@sentry/node 117.38 kB +0.02% +22 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82 kB +0.03% +20 B 🔺
@sentry/aws-serverless 91.36 kB +0.03% +25 B 🔺
@sentry/cloudflare (withSentry) - minified 194.46 kB - -
@sentry/cloudflare (withSentry) 480.88 kB - -

View base workflow run

@Lms24 Lms24 changed the title fix(remix): Resolve static routes to their own route template fix(nextjs): Treat static route span names as low-cardinality names Aug 24, 2026
@Lms24 Lms24 changed the title fix(nextjs): Treat static route span names as low-cardinality names fix(remix): Treat static route span names as low-cardinality names Aug 24, 2026
@Lms24
Lms24 force-pushed the lms/fix-remix-static-route-parameterization branch from 079f5f1 to 7627ab7 Compare August 24, 2026 09:34
Lms24 and others added 2 commits August 24, 2026 12:58
`findMatchingRoutes` returned nothing for a path that exactly matched a static
route in the build-time manifest, so `maybeParameterizeRemixRoute` reported it
the same way as a path it could not resolve at all: no manifest (the Vite plugin
is opt-in, and the classic compiler never injects one), a 404, or a route the
file-convention scanner missed. Static routes were therefore emitted with
`sentry.source: 'url'` and no `url.template`, even though a static route is its
own template - one with zero parameters - and is guaranteed low cardinality by
the finite build-time route list.

Return the route itself instead. Pageload and navigation spans both derive their
name, source and `url.template` from that return value, so static routes now
carry `sentry.source: 'route'`. Under span streaming they keep their path as the
span name instead of collapsing to `Pageload`, which is now reserved for paths
the manifest genuinely cannot resolve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Lms24
Lms24 force-pushed the lms/fix-remix-static-route-parameterization branch from 3859679 to 176c9d4 Compare August 24, 2026 10:58
@Lms24
Lms24 marked this pull request as ready for review August 24, 2026 11:01
@Lms24
Lms24 requested a review from a team as a code owner August 24, 2026 11:01
@Lms24
Lms24 requested review from chargome and nicohrubec and removed request for a team August 24, 2026 11:01
@Lms24
Lms24 merged commit e64c5ec into develop Aug 24, 2026
50 checks passed
@Lms24
Lms24 deleted the lms/fix-remix-static-route-parameterization branch August 24, 2026 11:47
JPeer264 pushed a commit that referenced this pull request Aug 25, 2026
…23504)

Same as #23503

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

3 participants