René's URL Explorer Experiment


Title: feat(express)!: Remove `shouldHandleError` from `setupExpressErrorHandler` by s1gr1d · Pull Request #23732 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(express)!: Remove `shouldHandleError` from `setupExpressErrorHandler` by s1gr1d · Pull Request #23732 · getsentry/sentry-javascript

X Title: feat(express)!: Remove `shouldHandleError` from `setupExpressErrorHandler` by s1gr1d · Pull Request #23732 · getsentry/sentry-javascript

Description: shouldHandleError now lives only on expressIntegration(). setupExpressErrorHandler and expressErrorHandler no longer accept the option, and the ExpressHandlerOptions type is removed. This finishes #23464: the integration owns error capture, so it should own the filter too. Fastify and Hapi already work this way. The deprecated setupExpressErrorHandler still captures when the integration cannot (setups where orchestrion does not work). But filtering keeps working on the expressIntegration. It captures 5xx errors and errors without a status, and cannot be filtered. Filtering is the reason to migrate to expressIntegration(). First merge this one: #23724

Open Graph Description: shouldHandleError now lives only on expressIntegration(). setupExpressErrorHandler and expressErrorHandler no longer accept the option, and the ExpressHandlerOptions type is removed. This finishes ...

X Description: shouldHandleError now lives only on expressIntegration(). setupExpressErrorHandler and expressErrorHandler no longer accept the option, and the ExpressHandlerOptions type is removed. This finishes ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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:d760f836-3398-56b8-1e12-d017440aff44
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE330:181C7:3EF407:57AE39:6B0427AD
html-safe-nonce2bf6925666deb266a75b71b43efb347e31ff1c3cc82fee4c5d814f1049296a66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzMwOjE4MUM3OjNFRjQwNzo1N0FFMzk6NkIwNDI3QUQiLCJ2aXNpdG9yX2lkIjoiMTM3MzA1MDgxNjY4NDEwNzY5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3cda369c5667602df9d8e18fa6a052823c925ed03324d947eda4ca353c6ec9dd
hovercard-subject-tagpull_request:4384559380
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/23732/files
twitter:imagehttps://avatars.githubusercontent.com/u/32902192?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/32902192?s=400&v=4
og:image:altshouldHandleError now lives only on expressIntegration(). setupExpressErrorHandler and expressErrorHandler no longer accept the option, and the ExpressHandlerOptions type is removed. This finishes ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/23732/changes#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F23732%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%2F23732%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/23732/changes
Reloadhttps://github.com/getsentry/sentry-javascript/pull/23732/changes
Reloadhttps://github.com/getsentry/sentry-javascript/pull/23732/changes
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests59 (59)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
s1gr1dhttps://github.com/s1gr1d
develophttps://github.com/getsentry/sentry-javascript/tree/develop
sig/express-handleErrorhttps://github.com/getsentry/sentry-javascript/tree/sig/express-handleError
Conversation 10 https://github.com/getsentry/sentry-javascript/pull/23732
Commits 5 https://github.com/getsentry/sentry-javascript/pull/23732/commits
Checks 285 https://github.com/getsentry/sentry-javascript/pull/23732/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/23732/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
feat(express)!: Remove shouldHandleError from setupExpressErrorHandler https://github.com/getsentry/sentry-javascript/pull/23732/changes#top
Show all changes 5 commits https://github.com/getsentry/sentry-javascript/pull/23732/files
90f635f test(express): Error handler tests s1gr1d Aug 28, 2026 https://github.com/getsentry/sentry-javascript/pull/23732/commits/90f635f79076060b1df4f071eb834be828f7c75b
b05851b feat(express)!: Remove `shouldHandleError` from `setupExpressErrorHan… s1gr1d Aug 28, 2026 https://github.com/getsentry/sentry-javascript/pull/23732/commits/b05851b1dbe7047948ffe1be340f457856d5908e
2385dba only filter in expressIntegration s1gr1d Aug 31, 2026 https://github.com/getsentry/sentry-javascript/pull/23732/commits/2385dba9b822cedb714b4b2f5e6ba8bb9abfde50
fe1b7ef small fixes s1gr1d Aug 31, 2026 https://github.com/getsentry/sentry-javascript/pull/23732/commits/fe1b7ef14eec34f8e5192c5684c72d1b8b28879f
021f333 Merge branch 'develop' into sig/express-handleError s1gr1d Aug 31, 2026 https://github.com/getsentry/sentry-javascript/pull/23732/commits/021f333feb27e045c80e3ce85a33aa289a61bea6
Clear filters https://github.com/getsentry/sentry-javascript/pull/23732/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
MIGRATION.md https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
scenario-setup-error-handler-fallback.mjs https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c10f1e3495f719bddf9223546bafedc304fe8819e51ec1a52937b8c3d3554eb2
test.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-bab27cfa5115ebd6ab8992254faa377ca08c69ad66bf8426f1f6b1ac248152a7
types.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2fbf595182c786e847afe6c34f29f3be0c64db0d415860bdfb0e1083b17708ec
server-exports.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-7e6c8a32a4618218e0104828be76a8e5d2aec4aca49327c31a4434c996ca8677
index.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2740f48de7224a46b6678ea630d63bd84091728a76f4b7b3781747493dc6d50b
error-handler.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
types.ts https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-fefb3d4aeb0a25c759a9161500ebc0dff62b0b0f9fdcdf16200098c49a479e3a
MIGRATION.mdhttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/MIGRATION.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
...e-integration-tests/suites/express/handle-error/scenario-setup-error-handler-fallback.mjshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c10f1e3495f719bddf9223546bafedc304fe8819e51ec1a52937b8c3d3554eb2
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/dev-packages/node-integration-tests/suites/express/handle-error/scenario-setup-error-handler-fallback.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-c10f1e3495f719bddf9223546bafedc304fe8819e51ec1a52937b8c3d3554eb2
dev-packages/node-integration-tests/suites/express/handle-error/test.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-bab27cfa5115ebd6ab8992254faa377ca08c69ad66bf8426f1f6b1ac248152a7
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/dev-packages/node-integration-tests/suites/express/handle-error/test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-bab27cfa5115ebd6ab8992254faa377ca08c69ad66bf8426f1f6b1ac248152a7
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-bab27cfa5115ebd6ab8992254faa377ca08c69ad66bf8426f1f6b1ac248152a7
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-bab27cfa5115ebd6ab8992254faa377ca08c69ad66bf8426f1f6b1ac248152a7
packages/core/src/integrations/express/types.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2fbf595182c786e847afe6c34f29f3be0c64db0d415860bdfb0e1083b17708ec
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/packages/core/src/integrations/express/types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2fbf595182c786e847afe6c34f29f3be0c64db0d415860bdfb0e1083b17708ec
packages/core/src/server-exports.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-7e6c8a32a4618218e0104828be76a8e5d2aec4aca49327c31a4434c996ca8677
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/packages/core/src/server-exports.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-7e6c8a32a4618218e0104828be76a8e5d2aec4aca49327c31a4434c996ca8677
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-7e6c8a32a4618218e0104828be76a8e5d2aec4aca49327c31a4434c996ca8677
packages/server-utils/src/index.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2740f48de7224a46b6678ea630d63bd84091728a76f4b7b3781747493dc6d50b
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/packages/server-utils/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2740f48de7224a46b6678ea630d63bd84091728a76f4b7b3781747493dc6d50b
isaacshttps://github.com/isaacs
Aug 30, 2026https://github.com/getsentry/sentry-javascript/pull/23732/changes#r3890549243
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
s1gr1dhttps://github.com/s1gr1d
Aug 31, 2026https://github.com/getsentry/sentry-javascript/pull/23732/changes#r3893203950
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
isaacshttps://github.com/isaacs
Aug 30, 2026https://github.com/getsentry/sentry-javascript/pull/23732/changes#r3890547157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
s1gr1dhttps://github.com/s1gr1d
Aug 31, 2026https://github.com/getsentry/sentry-javascript/pull/23732/changes#r3893369333
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
s1gr1dhttps://github.com/s1gr1d
Aug 31, 2026https://github.com/getsentry/sentry-javascript/pull/23732/changes#r3894178892
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#23763https://github.com/getsentry/sentry-javascript/pull/23763
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-2740f48de7224a46b6678ea630d63bd84091728a76f4b7b3781747493dc6d50b
packages/server-utils/src/integrations/express/error-handler.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/packages/server-utils/src/integrations/express/error-handler.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-ac7b8cad1005afe7d80f62441c4d7b8439ef65b910017ac720cf1d9efa5a8121
packages/server-utils/src/integrations/express/types.tshttps://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-fefb3d4aeb0a25c759a9161500ebc0dff62b0b0f9fdcdf16200098c49a479e3a
View file https://github.com/getsentry/sentry-javascript/blob/021f333feb27e045c80e3ce85a33aa289a61bea6/packages/server-utils/src/integrations/express/types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/23732/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-fefb3d4aeb0a25c759a9161500ebc0dff62b0b0f9fdcdf16200098c49a479e3a
https://github.com/getsentry/sentry-javascript/pull/23732/changes#diff-fefb3d4aeb0a25c759a9161500ebc0dff62b0b0f9fdcdf16200098c49a479e3a
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23732/changes
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.