René's URL Explorer Experiment


Title: feat(nextjs): Auto instrument generation functions by lforst · Pull Request #9781 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(nextjs): Auto instrument generation functions by lforst · Pull Request #9781 · getsentry/sentry-javascript

X Title: feat(nextjs): Auto instrument generation functions by lforst · Pull Request #9781 · getsentry/sentry-javascript

Description: Resolves #9570 This PR will auto instrument Next.js app router "generation functions": generateMetadata. generateImageMetadata generateViewport We are capturing errors, the duration in the form of transactions, and recording parameters if sendDefaultPii is set. Because these generation functions are a Next.js 14 feature, I had to add a new E2E test application. Event: https://sentry-sdks.sentry.io/issues/4722077733/events/967aa2215944414984e37b75ed20148

Open Graph Description: Resolves #9570 This PR will auto instrument Next.js app router "generation functions": generateMetadata. generateImageMetadata generateViewport We are capturing errors, the duration in ...

X Description: Resolves #9570 This PR will auto instrument Next.js app router "generation functions": generateMetadata. generateImageMetadata generateViewport We are capturing errors, the dura...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:63230f51-7227-590d-0642-34c507036057
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD26E:52410:24C0A71:2F50548:6B03FB27
html-safe-noncecc2a8da9e10d97dbe19aeaf417ed56eeb9b8036c9d8a1c6f0d1d6bf97e85a58d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjZFOjUyNDEwOjI0QzBBNzE6MkY1MDU0ODo2QjAzRkIyNyIsInZpc2l0b3JfaWQiOiIyMzg1MTQzNjI5MzA1MDg0NzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3d7a4edbc7ddada0d0448cbd7e59e2aed69cda158fd7efe2d614e7ebba871f4b
hovercard-subject-tagpull_request:1634792035
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/9781/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:altResolves #9570 This PR will auto instrument Next.js app router "generation functions": generateMetadata. generateImageMetadata generateViewport We are capturing errors, the duration in ...
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/9781/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F9781%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%2F9781%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/9781/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9781/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9781/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues345 (345)https://github.com/getsentry/sentry-javascript/issues
Pull requests66 (66)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-generation-functionshttps://github.com/getsentry/sentry-javascript/tree/lforst-generation-functions
Conversation 3 https://github.com/getsentry/sentry-javascript/pull/9781
Commits 8 https://github.com/getsentry/sentry-javascript/pull/9781/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/9781/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/9781/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9781/files
feat(nextjs): Auto instrument generation functions https://github.com/getsentry/sentry-javascript/pull/9781/files#top
Show all changes 8 commits https://github.com/getsentry/sentry-javascript/pull/9781/files
9d980d6 feat(nextjs): Auto instrument generation functions Dec 7, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/9d980d65c6344a1ce4ea09a72b82662c92d404c0
c6e687d E2E tests Dec 11, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/c6e687d419c38f14ef0b17e73ec8272564b87f90
4c34154 Bump timeout Dec 11, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/4c3415494c5dc419d62ec96a43de5de1ab680bc0
12d8428 nextjs-14 E2E tests Dec 12, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/12d842860314c39c71088fe5b4fdaef9347c39f9
283c79f Trigger ci Dec 12, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/283c79f0411d7bece9ec3520794f409933bc2c78
6546e50 . Dec 12, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/6546e50189b425bed1e4ffe3690816d9643c73a2
b5c5eb2 why Dec 12, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/b5c5eb2796e1a9c13f42467660af4d5e603596f7
6bcbec4 . Dec 12, 2023 https://github.com/getsentry/sentry-javascript/pull/9781/commits/6bcbec48e5fef64a7d732d325679173e8b0d8ef3
Clear filters https://github.com/getsentry/sentry-javascript/pull/9781/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9781/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9781/files
build.yml https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
canary.yml https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4b56c7c159ef6d182d11a4f6d189ea69d9ee8b2dfde7e7e920052190549c65e8
.gitignore https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-fcb8b5b4c1e71f054421e67fd8abbd31032fe9e777ae08042a42f43a58a0ac8d
.npmrc https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-dd2285ed82935136b51273e3a2e7132708c0d7149b11c2a9d0f3dcfbad2bf827
page.tsx https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-daa2db569cf14b957812c8ef2d348adfe1ae9de9df7d85c64f275202dbefcafb
layout.tsx https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-3e138144e9b200a00cb85a429910d99b8e291f92698810fd3d07cc2948859056
event-proxy-server.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-09118791c5631ec750a104db12e47b790e1c68951130dfcd515b7a9cfce8d72f
globals.d.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-c530d1b2159054f4cdab7336a057ab7154a0a9377be131f8717af2c04ec38a08
next-env.d.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4a58fec7a8588adc8693f83154a1344715c203f64a07076fef9055873795e28f
next.config.js https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-81b55365d08645d2330323aad0016a1af7eeb6ef047997b4bacc5f5750d32066
package.json https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-cd5088627905b84c947ab41ba5a47841f2298d777552b62158eddaf4ff426fec
playwright.config.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-f58e94ee3322efec312e912dd1b448ef1b11dca9382bde6f81a0de1690e9767a
sentry.client.config.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-07944de687faf1aa933c58af6beffef646844028be3539e22185f2328c5b5f27
sentry.edge.config.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-a62b9a2198fdffc8cefab2aa8f6ed81733d9fc3e521f7c2de4fa165402d08616
sentry.server.config.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-876e8d02b5dd537b060edff65c57d6bc38c4b2cf6a2fe8cc3bd4d2ecb204c0de
start-event-proxy.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-b6a435bcbc27a982d88fec7306a77770b1476ab4c059d3c603b3fc7d73665bd0
generation-functions.test.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-9817ae17727cb182545ebf99ca6a9c10954316be937b70d138a7bec625332bae
tsconfig.json https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-9a4088687cb84ac13789e07360406cf480a7d9066cf9e34aa97ed3c87e19f869
index.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-1b5a4c446b9b94ff1a36710039088a29371bec8dc3376b3d6db4c4288276cf8a
types.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-bfa5f4e056d1c24f5eb572fe380b24e4b7f759889b9613f587444ae95ed6ecf5
wrapGenerationFunctionWithSentry.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-fc6ae92e9cc9b966738430ab6ccb0cbb58a10895b99fefb662975c45d027e650
serverComponentWrapperTemplate.ts https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-12b9872717dad1d78541f2cd22753939a6b169245a25b5f73bdbb0967aafd575
.github/workflows/build.ymlhttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/.github/workflows/build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
.github/workflows/canary.ymlhttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4b56c7c159ef6d182d11a4f6d189ea69d9ee8b2dfde7e7e920052190549c65e8
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/.github/workflows/canary.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4b56c7c159ef6d182d11a4f6d189ea69d9ee8b2dfde7e7e920052190549c65e8
https://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4b56c7c159ef6d182d11a4f6d189ea69d9ee8b2dfde7e7e920052190549c65e8
packages/e2e-tests/test-applications/nextjs-14/.gitignorehttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-fcb8b5b4c1e71f054421e67fd8abbd31032fe9e777ae08042a42f43a58a0ac8d
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/.npmrchttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-dd2285ed82935136b51273e3a2e7132708c0d7149b11c2a9d0f3dcfbad2bf827
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/.npmrc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/app/generation-functions/page.tsxhttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-daa2db569cf14b957812c8ef2d348adfe1ae9de9df7d85c64f275202dbefcafb
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/app/generation-functions/page.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/app/layout.tsxhttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-3e138144e9b200a00cb85a429910d99b8e291f92698810fd3d07cc2948859056
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/app/layout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/event-proxy-server.tshttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-09118791c5631ec750a104db12e47b790e1c68951130dfcd515b7a9cfce8d72f
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/event-proxy-server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/globals.d.tshttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-c530d1b2159054f4cdab7336a057ab7154a0a9377be131f8717af2c04ec38a08
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/globals.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
packages/e2e-tests/test-applications/nextjs-14/next-env.d.tshttps://github.com/getsentry/sentry-javascript/pull/9781/files#diff-4a58fec7a8588adc8693f83154a1344715c203f64a07076fef9055873795e28f
View file https://github.com/getsentry/sentry-javascript/blob/6bcbec48e5fef64a7d732d325679173e8b0d8ef3/packages/e2e-tests/test-applications/nextjs-14/next-env.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9781/{{ revealButtonHref }}
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9781/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.