swetrix-api icon indicating copy to clipboard operation
swetrix-api copied to clipboard

rfc: Support for additional Error Data

Open Alfagun74 opened this issue 1 year ago • 3 comments

Dupe Check

Describe the solution you'd like?

Currently the message is the only free field in the errors and it makes things difficult and very awful to show in the ui.

Support seperate fields in Error Events for:

  • Exception/Error Name
  • Exception/Error Message
  • Stack Trace
  • Meta Object (Similar to Custom Events)

then show them more beautifully in the error ui.

Additional context

No response

How important is this feature to you?

5 (Can't work without it!)

Alfagun74 avatar Oct 23 '24 18:10 Alfagun74

image

putting the entire 2000 character message as bold h2 title is not a great idea either

Alfagun74 avatar Oct 23 '24 18:10 Alfagun74

We have metadata for custom events, something similar should be implemented for error events too

Blaumaus avatar Oct 23 '24 18:10 Blaumaus

I have a global error handler so most errors aren't actually caught by trackErrors(). I can report them with swetrix.trackError() but without stack traces that's pretty much useless.

KaelWD avatar Nov 04 '24 06:11 KaelWD

Image Image

Blaumaus avatar May 23 '25 20:05 Blaumaus