8000 feat(core): Remove default value of `maxValueLength: 250` by s1gr1d · Pull Request #18043 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@s1gr1d
Copy link
Member
@s1gr1d s1gr1d commented Oct 28, 2025

The SDK should only truncate when really necessary on the client. Therefore, the default value of 250 is removed.

Part of #17389

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.62 kB -0.02% -3 B 🔽
@sentry/browser - with treeshaking flags 23.11 kB -0.02% -3 B 🔽
@sentry/browser (incl. Tracing) 40.97 kB -0.01% -3 B 🔽
@sentry/browser (incl. Tracing, Profiling) 45.26 kB -0.01% -1 B 🔽
@sentry/browser (incl. Tracing, Replay) 79.29 kB -0.01% -1 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.97 kB -0.01% -3 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 83.99 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 96.15 kB -0.01% -3 B 🔽
@sentry/browser (incl. Feedback) 41.3 kB -0.01% -3 B 🔽
@sentry/browser (incl. sendFeedback) 29.29 kB -0.01% -2 B 🔽
@sentry/browser (incl. FeedbackAsync) 34.22 kB -0.01% -3 B 🔽
@sentry/react 26.31 kB -0.01% -2 B 🔽
@sentry/react (incl. Tracing) 42.97 kB - -
@sentry/vue 29.11 kB -0.02% -3 B 🔽
@sentry/vue (incl. Tracing) 42.75 kB -0.01% -3 B 🔽
@sentry/svelte 24.63 kB -0.02% -3 B 🔽
CDN Bundle 26.9 kB -0.01% -1 B 🔽
CDN Bundle (incl. Tracing) 41.62 kB -0.01% -3 B 🔽
CDN Bundle (incl. Tracing, Replay) 77.87 kB -0.01% -1 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 83.35 kB - -
CDN Bundle - uncompressed 78.86 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 123.45 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 238.49 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 251.25 kB +0.01% +4 B 🔺
@sentry/nextjs (client) 45.11 kB -0.01% -1 B 🔽
@sentry/sveltekit (client) 41.4 kB -0.01% -1 B 🔽
@sentry/node-core 50.75 kB - -
@sentry/node 157.81 kB -0.01% -1 B 🔽
@sentry/node - without tracing 92.63 kB - -
@sentry/aws-serverless 106.35 kB - -

View base workflow run

@github-actions
Copy link
Contributor

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,255 - 8,558 +8%
GET With Sentry 1,334 14% 1,326 +1%
GET With Sentry (error only) 6,054 65% 5,986 +1%
POST Baseline 1,192 - 1,184 +1%
POST With Sentry 544 46% 536 +1%
POST With Sentry (error only) 1,049 88% 1,040 +1%
MYSQL Baseline 3,222 - 3,240 -1%
MYSQL With Sentry 453 14% 394 +15%
MYSQL With Sentry (error only) 2,694 84% 2,637 +2%

View base workflow run

@s1gr1d s1gr1d requested review from JPeer264 and Lms24 October 28, 2025 14:13
Copy link
Member
@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. I am just not sure if this isn't considered a breaking change. Since it would behave now differently

@s1gr1d
Copy link
Member Author
s1gr1d commented Oct 30, 2025

if this isn't considered a breaking change. Since it would behave now differently

I talked about that with @Lms24 because I had the same concerns but we decided to not consider this a breaking change as the value is still truncated on Relay and we think that it's unlikely that someone relies on the exact match of a 250 character string on the client.

@s1gr1d s1gr1d merged commit 2d760ba into develop Oct 30, 2025
378 of 383 checks passed
@s1gr1d s1gr1d deleted the sig/sdk-maxValueLength branch October 30, 2025 08:44
s1gr1d added a commit to getsentry/sentry-docs that referenced this pull request Oct 31, 2025
## DESCRIBE YOUR PR

PR getsentry/sentry-javascript#18043 removed the
default value of `maxValueLength`

part of getsentry/sentry-javascript#17389
## IS YOUR CHANGE URGENT?  

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [ ] None: Not urgent, can wait up to 1 week+

## SLA

- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!

## PRE-MERGE CHECKLIST

*Make sure you've checked the following before merging your changes:*

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0