Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
7.59.2
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
const wat = new Error('this is very long message that should be truncated and will be, this is very long message that should be truncated and will be, this is very long message that should be truncated and will be, this is very long message that should be truncated and will be, this is very long message that should be truncated and will be');
wat.cause = new Error('this is very long message that should be truncated but wont be, this is very long message that should be truncated but wont be, this is very long message that should be truncated but wont be, this is very long message that should be truncated but wont be, this is very long message that should be truncated but wont be');
Sentry.captureException(wat);
This is usually apparent when using React with error boundaries, causing UI to look ugly.
Expected Result
Both exceptions should have their message truncated up to maxValueLength
or default 250
.
Actual Result
Only the first exception is correctly transformed.