aws-observability / aws-rum-web

Amazon CloudWatch RUM Web Client
Apache License 2.0
114 stars 65 forks source link

[General Inquiry]: missing stacktrace when recording js errors with RUM #534

Closed mcnally closed 2 months ago

mcnally commented 3 months ago

What is your general inquiry?

I have set up webrum using the script and recordPageView, I am seeing errors in the console e.g. error Script error. but no stacktrace Is there any additional setup required to record error stack traces for errors that happen at runtime ?

williazz commented 3 months ago

Please provide steps to reproduce, and the full JS error events

qhanam commented 2 months ago

If the application throws something other than an Error object (like a string), there will be no stack trace.

For example, throw "Script error." will not yield a stack trace.