-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
BugPackage: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDKStale
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.36.0
Framework Version
15.0.2
Link to Sentry event
Reproduction Example/SDK Setup
https://github.com/branislavbrincko/sentry-nextjs-traces-bug
Steps to Reproduce
- create a new Next.js project using
npx create-next-app@latest(selectpagesrouter during setup) - setup Sentry using
npx @sentry/wizard@latest -i nextjs - deploy project to Vercel
- navigate to
/sentry-example-pageand click onThrow error!button
Expected Result
I expect to see a proper stack trace for error thrown in API route handler (by proper stack trace I mean I expect to see this throw new Error("Sentry Example API Route Error"); line). The following is the stack trace I get when I run the project locally in dev and this is what I expect also for prod on Vercel:
Actual Result
Instead, the last trace is sentry-wrapper-module:
Metadata
Metadata
Assignees
Labels
BugPackage: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDKStale
Projects
Status
Waiting for: Community

