Overview: I’m using Sentry with a NestJS (Node.js) backend to monitor errors and performance. I’ve set up source maps to map my compiled JavaScript files (dist/.js) back to my original TypeScript files (src/.ts). I've tried to use bash npx @sentry/wizard@latest -i sourcemaps but it didn't helped at all. I’m using sentry-cli to inject Debug IDs and upload source maps, but the stack traces and profiles in Sentry are not mapping to my src/*.ts files. Instead, I see "No Instrumentation" warnings in traces, and profiles show generic function names like f0, f1, etc., instead of my actual code.
Project Details:
- Organization: bombonchik
- Project: next-nonce
- Release: my-nest-app@0.0.1
- Sample Trace ID: 78547ec7f4f (from the DELETE /v1/users/me trace)
- Environment: Production
- Node.js Version: v20.17.0
- Sentry SDK: @sentry/nestjs (version not specified, but I can provide if needed)
- Profiling: Enabled with @sentry/profiling-node
Build and Upload Process:
- I build my NestJS project using:
yarn build
My package.json script is:
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org bombonchik --project next-nonce dist && sentry-cli sourcemaps upload --org bombonchik --project next-nonce --url-prefix '/dist' --release=my-nest-app@0.0.1 dist"