Skip to content

feat(express)!: Remove shouldHandleError from setupExpressErrorHandler - #23732

Open
s1gr1d wants to merge 2 commits into
developfrom
sig/express-handleError
Open

feat(express)!: Remove shouldHandleError from setupExpressErrorHandler#23732
s1gr1d wants to merge 2 commits into
developfrom
sig/express-handleError

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 28, 2026

Copy link
Copy Markdown
Member

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.


First merge this one:

@s1gr1d
s1gr1d requested review from a team as code owners August 28, 2026 12:08
@s1gr1d
s1gr1d requested review from JPeer264 and isaacs and removed request for a team August 28, 2026 12:08
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.56 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.63 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.64 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.55 kB added added
@sentry/browser (incl. Tracing, Replay) 88.09 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.52 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 92.79 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 105.5 kB added added
@sentry/browser (incl. Feedback) 45.8 kB added added
@sentry/browser (incl. sendFeedback) 33.37 kB added added
@sentry/browser (incl. FeedbackAsync) 38.47 kB added added
@sentry/browser (incl. Metrics) 29.51 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.43 kB added added
@sentry/react 30.3 kB added added
@sentry/react (incl. Tracing) 50.83 kB added added
@sentry/vue 35.69 kB added added
@sentry/vue (incl. Tracing) 50.86 kB added added
@sentry/svelte 28.59 kB added added
CDN Bundle 30.35 kB added added
CDN Bundle (incl. Tracing) 49.24 kB added added
CDN Bundle (incl. Logs, Metrics) 32.57 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 51.12 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73.17 kB added added
CDN Bundle (incl. Tracing, Replay) 86.72 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.61 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.64 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.53 kB added added
CDN Bundle - uncompressed 89.95 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.82 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.24 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.51 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.41 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.32 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.07 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.74 kB added added
@sentry/nextjs (client) 53.41 kB added added
@sentry/sveltekit (client) 49.07 kB added added
@sentry/core/server 65.15 kB added added
@sentry/core/browser 51.88 kB added added
@sentry/node 122.7 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.22 kB added added
@sentry/node - without tracing 87.73 kB added added
@sentry/node - without channel injection 102.37 kB added added
@sentry/aws-serverless 95.89 kB added added
@sentry/cloudflare (withSentry) - minified 199.69 kB added added
@sentry/cloudflare (withSentry) 496.19 kB added added

Base automatically changed from sig/express-error-tests to develop August 28, 2026 15:27
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant