micro-sentry icon indicating copy to clipboard operation
micro-sentry copied to clipboard

[BUG] Error `cause` not being respected

Open mmkal opened this issue 1 year ago • 4 comments

🐞 Bug report

Description

We are calling Sentry.report(new Error('Something bad happened'), {cause: 'Some useful context about the bad thing'}) on a micro-sentry client, but we only see the "Something bad happened" message in sentry.io. I would expect the cause to appear under the "extras" section in the Sentry UI. It's not in the JSON payload sent to sentry a all though

Reproduction

I don't know that it's possible to reproduce in stackblitz since it's about what gets sent to sentry, but it should be easy to reproduce if you have a local sentry set up. Just create a new @micro-sentry/browser client and call the code snippet above.

Expected behavior

Include cause (MDN docs)

Versions

If needed:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Angular/React/Vue [e.g. Angular 11]

Additional context

mmkal avatar Jan 26 '24 17:01 mmkal