sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

feat(nextjs): Remove tracing from middleware wrappers

Open logaretm opened this issue 1 month ago • 2 comments

closes #18308

For Next 13, it doesn't create transactions for middlewares, so we cannot patch this AFAIK without including traces in the middleware. Maybe a conversation for v11

logaretm avatar Dec 10 '25 10:12 logaretm

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,811 - 8,432 +4%
GET With Sentry 1,765 20% 1,645 +7%
GET With Sentry (error only) 6,081 69% 5,458 +11%
POST Baseline 1,210 - 1,169 +4%
POST With Sentry 602 50% 550 +9%
POST With Sentry (error only) 1,080 89% 1,016 +6%
MYSQL Baseline 3,338 - 3,241 +3%
MYSQL With Sentry 480 14% 368 +30%
MYSQL With Sentry (error only) 2,748 82% 2,593 +6%

View base workflow run

github-actions[bot] avatar Dec 10 '25 10:12 github-actions[bot]