How to get full stack trace in sentry?

Viewed 290

I have a vue 2 application. I setup sentry with official @sentry/vue package. In some issues I can't get full detailed stack trace. This issue has a good stack trace. I can click and see the exact line in my code. enter image description here

But in this issue I can't do it. enter image description here

I don't understand why In the first case sentry saved a few lines of code from chunk-app-vendors.xxx.js, but it didn't save code in the second issue. I don't have access to this file, because my application has already been updated.

How can I solve this problem to see more data about errors?

2 Answers

Is it because your project lacks sourcemap, and cannot locate the specific error location? You need to upload the sourcemap.

Sentry doesn't generate and doesn't upload sourcemaps by default. In particular, the whole process consists of:

  • generating the sourcemaps
  • uploading them to Sentry
  • validating them (on sentry)

I suggest you to read the related section of their documentation.

Related