Skip to content

maxValueLength is not applied for linked errors #8580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
kamilogorek opened this issue Jul 18, 2023 · 0 comments · Fixed by #8593
Closed
3 tasks done

maxValueLength is not applied for linked errors #8580

kamilogorek opened this issue Jul 18, 2023 · 0 comments · Fixed by #8593
Assignees
Labels
Package: core Issues related to the Sentry Core SDK

Comments

@kamilogorek
Copy link
Contributor

kamilogorek commented Jul 18, 2023

Is there an existing issue for this?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: core Issues related to the Sentry Core SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants