As per https://github.com/getsentry/sentry-javascript/pull/5778 we are doing all route wrapping on our own and having withSentry function has a potential to cause confusion and frankly, it becomes a tech debt the moment we promote auto wrapping of nexjs API routes to default SDK behaviour.
Solution Brainstorm
⚠️ this is a breaking change. I propose we schedule this for our v8 release ⚠️
Problem Statement
As per https://github.com/getsentry/sentry-javascript/pull/5778 we are doing all route wrapping on our own and having
withSentry
function has a potential to cause confusion and frankly, it becomes a tech debt the moment we promote auto wrapping of nexjs API routes to default SDK behaviour.Solution Brainstorm
⚠️ this is a breaking change. I propose we schedule this for our v8 release ⚠️
withSentry
from sentry-nextjs package