René's URL Explorer Experiment


Title: feat(nextjs): Add client routing instrumentation for app router by lforst · Pull Request #9446 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(nextjs): Add client routing instrumentation for app router by lforst · Pull Request #9446 · getsentry/sentry-javascript

X Title: feat(nextjs): Add client routing instrumentation for app router by lforst · Pull Request #9446 · getsentry/sentry-javascript

Description: This adds clientside routing instrumentation for the Next.js app router. Resolves #7180 Some details: Very basic pageload transactions (without any distributed tracing for SSR yet - I haven't found a way to do this yet) Starts navigation transactions when we detect a "navigating" server component fetch request (based on some heuristics) We have yet to fully figure out how to handle redirect() calls in the server components. Right now, when the client receives a redirect notice from the RSC request, it will abort the current navigation transaction and start a new one to the redirect target. This is just based on "navigating" RSC fetch requests as mentioned above. Transaction names are still unparameterized. If we want parameterized transactions we could invest in putting route data in the client bundle (this comes with a non-trivial bundle-size impact).

Open Graph Description: This adds clientside routing instrumentation for the Next.js app router. Resolves #7180 Some details: Very basic pageload transactions (without any distributed tracing for SSR yet - I haven't ...

X Description: This adds clientside routing instrumentation for the Next.js app router. Resolves #7180 Some details: Very basic pageload transactions (without any distributed tracing for SSR yet - I haven&#3...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/9446

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a8102a96-c784-b823-9519-e1c8712d1006
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA3E:3488ED:4DD59F:6D8AE4:6B0415D9
html-safe-noncec218cd343557b8ad470a0159bddaa895a16d508f8eb6992b94f2c0f557a43627
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTNFOjM0ODhFRDo0REQ1OUY6NkQ4QUU0OjZCMDQxNUQ5IiwidmlzaXRvcl9pZCI6IjI0NzMzMzc5MjY1NzUxOTk3MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace80d8abb9a2914ff4dfacf8ba4b91461252b0a9fd016d1d962a12d5bd6881570
hovercard-subject-tagpull_request:1585880531
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/9446/files
twitter:imagehttps://avatars.githubusercontent.com/u/8118419?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8118419?s=400&v=4
og:image:altThis adds clientside routing instrumentation for the Next.js app router. Resolves #7180 Some details: Very basic pageload transactions (without any distributed tracing for SSR yet - I haven't ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/9446/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F9446%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F9446%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9446/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9446/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9446/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
lforsthttps://github.com/lforst
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lforst-app-router-client-instrumentationhttps://github.com/getsentry/sentry-javascript/tree/lforst-app-router-client-instrumentation
Conversation 4 https://github.com/getsentry/sentry-javascript/pull/9446
Commits 13 https://github.com/getsentry/sentry-javascript/pull/9446/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/9446/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/9446/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
feat(nextjs): Add client routing instrumentation for app router https://github.com/getsentry/sentry-javascript/pull/9446/files#top
Show all changes 13 commits https://github.com/getsentry/sentry-javascript/pull/9446/files
bc782ca feat(nextjs): Add client routing instrumentation for app router Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/bc782cab3df75d9d51e80c9c331c2769509efd84
491d6a7 mvp Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/491d6a78703107f7b9d9136c55efc602e0286c5d
c4cae8e Restructuring Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/c4cae8ee05f544031063b6302fed5ff87d170cce
45bdbb2 cleanup Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/45bdbb2f2c6c5d88a9676b55e8f7ffe2b83baa62
2d81468 Fix tests Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/2d81468a8b3686b25b03495f7aa381083d76ec49
461e81f Add e2e test Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/461e81f2723759b89681f58380f8925326d69caa
e6da6a4 Rename test file Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/e6da6a4f380a73318c64126a988b0619a3c51daf
ce3e2bf Add unit tests Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/ce3e2bf12cb8560a6d7084749998dc778d53b5f6
5c30fd1 Fix tests Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/5c30fd1ef861a7e330dd0e01f1ffab0975d76825
5b44ede test Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/5b44ede501e953d49a07447d263757041f506915
678ac67 test Nov 3, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/678ac675d94e6df501d137a93d97223d7010775e
3870b17 Add origin Nov 6, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/3870b173232d6eca143105bda07c829e3fd50033
724ec23 ci Nov 6, 2023 https://github.com/getsentry/sentry-javascript/pull/9446/commits/724ec2330037b036f1add0bcd181f2c9dc69c0e7
Clear filters https://github.com/getsentry/sentry-javascript/pull/9446/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
client-app-routing-instrumentation.test.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-bea8f76fe9de5f344f5d14fae4a621466400ad708f8adefcd89bd7d369b934da
trace.test.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-dc1bb705563eac775a22d40ff5145354ee9a43156a00ba038b9f37573d326057
index.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-e100e68c9d21869ee4fcd19603984aa0b0833e80d6eb5351f2c4a5a1386c3c3e
appRouterRoutingInstrumentation.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-b05528fa307f7c66ad63c1101651b681bf11b424984e5938c1dbff80b6c0f794
nextRoutingInstrumentation.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-4063f03c3a0d8fea5c7c770295bb9be56af93dbdc5f4258d87bdabceddcbf9f0
pagesRouterRoutingInstrumentation.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
appRouterInstrumentation.test.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-857c24ea49f34dd7698c355058a84003f4be553db2a5f25e95ef2985a8958df2
pagesRouterInstrumentation.test.ts https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-0fa5525b3f102e2e421896dd7ee1f5b93a55370fb4479da33d3b4aeab8289496
...e-tests/test-applications/nextjs-app-dir/tests/client-app-routing-instrumentation.test.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-bea8f76fe9de5f344f5d14fae4a621466400ad708f8adefcd89bd7d369b934da
View file https://github.com/getsentry/sentry-javascript/blob/724ec2330037b036f1add0bcd181f2c9dc69c0e7/packages/e2e-tests/test-applications/nextjs-app-dir/tests/client-app-routing-instrumentation.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9446/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-app-dir/tests/trace.test.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-dc1bb705563eac775a22d40ff5145354ee9a43156a00ba038b9f37573d326057
View file https://github.com/getsentry/sentry-javascript/blob/10fb09af3a8118357aa2416973ed5c4fa94f35a1/packages/e2e-tests/test-applications/nextjs-app-dir/tests/trace.test.ts
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
packages/nextjs/src/client/index.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-e100e68c9d21869ee4fcd19603984aa0b0833e80d6eb5351f2c4a5a1386c3c3e
View file https://github.com/getsentry/sentry-javascript/blob/724ec2330037b036f1add0bcd181f2c9dc69c0e7/packages/nextjs/src/client/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9446/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-e100e68c9d21869ee4fcd19603984aa0b0833e80d6eb5351f2c4a5a1386c3c3e
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-e100e68c9d21869ee4fcd19603984aa0b0833e80d6eb5351f2c4a5a1386c3c3e
packages/nextjs/src/client/routing/appRouterRoutingInstrumentation.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-b05528fa307f7c66ad63c1101651b681bf11b424984e5938c1dbff80b6c0f794
View file https://github.com/getsentry/sentry-javascript/blob/724ec2330037b036f1add0bcd181f2c9dc69c0e7/packages/nextjs/src/client/routing/appRouterRoutingInstrumentation.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9446/{{ revealButtonHref }}
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
packages/nextjs/src/client/routing/nextRoutingInstrumentation.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-4063f03c3a0d8fea5c7c770295bb9be56af93dbdc5f4258d87bdabceddcbf9f0
View file https://github.com/getsentry/sentry-javascript/blob/724ec2330037b036f1add0bcd181f2c9dc69c0e7/packages/nextjs/src/client/routing/nextRoutingInstrumentation.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9446/{{ revealButtonHref }}
packages/nextjs/src/client/performance.ts → ...ting/pagesRouterRoutingInstrumentation.tshttps://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
View file https://github.com/getsentry/sentry-javascript/blob/724ec2330037b036f1add0bcd181f2c9dc69c0e7/packages/nextjs/src/client/routing/pagesRouterRoutingInstrumentation.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9446/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
https://github.com/getsentry/sentry-javascript/pull/9446/files#diff-3d37473dce47a454a26e3bda2604f1992c475be870864d657147896d09232eb2
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9446/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.