You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(nextjs)!: Use middleware span op for Next.js middleware (#22674)
Aligns the Next.js middleware span op with the `@sentry/conventions`
`middleware`, replacing the previous `http.server.middleware`.
The duplicate middleware span this issue also described was already
resolved separately in #18456 (the build-time wrapper no longer starts
its own span); this PR adds the regression test coverage that was
missing there.
closes#22636
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: MIGRATION.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,11 +266,11 @@ Affected SDKs: `@sentry/browser` and `@sentry/deno` (and their dependents).
266
266
267
267
The `console` option of `breadcrumbsIntegration` was removed. Use the `consoleIntegration` from `@sentry/core` to capture console breadcrumbs instead.
268
268
269
-
### Next.js: tracing removed from generated templates
269
+
### `@sentry/nextjs`
270
270
271
-
Affected SDKs: `@sentry/nextjs`.
271
+
**Tracing removed from generated templates:** Tracing was removed from the generated Pages Router API handler, Edge API handler, and Middleware wrapper templates. Route handlers and middleware are still instrumented automatically, so no action is required for most users.
272
272
273
-
Tracing was removed from the generated Pages Router API handler, Edge API handler, and Middleware wrapper templates. Route handlers and middleware are still instrumented automatically, so no action is required for most users.
273
+
**Middleware span op changed to `middleware`:** Next.js middleware spans now use the `middleware` span op instead of `http.server.middleware`. If you filter or alert on the previous op (e.g. in dashboards or dynamic sampling rules), update it to `middleware`.
274
274
275
275
### Cloudflare: `nodejs_compat` compatibility flag is now required
0 commit comments