Skip to content

Conversation

@isaacs
Copy link
Member

@isaacs isaacs commented Dec 4, 2025

This is the functional portion addressing JS-1002.

Prior to truncating text messages for their byte length, any inline base64-encoded media properties are filtered out. This allows the message to possibly be included in the span, indicating to the user that a media object was present, without overflowing the allotted buffer for sending data.

If a media message is not removed, the fallback is still to simply remove it if its overhead grows too large.

Re JS-1002
Re GH-17810

Message truncation (for text length and inline media) still needs to be added to the docs.

@linear
Copy link

linear bot commented Dec 4, 2025

@isaacs isaacs requested a review from RulaKhaled December 4, 2025 22:11
isaacs added a commit that referenced this pull request Dec 4, 2025
This is the functional portion addressing JS-1002.

Prior to truncating text messages for their byte length, any inline
base64-encoded media properties are filtered out. This allows the
message to possibly be included in the span, indicating to the user that
a media object was present, without overflowing the allotted buffer for
sending data.

If a media message is not removed, the fallback is still to simply
remove it if its overhead grows too large.

Re JS-1002
Re GH-17810
@isaacs isaacs force-pushed the isaacschlueter/js-1002-drop-media-from-messages-in-sdks-and-document-behavior branch from 7c5aad2 to 3512099 Compare December 4, 2025 22:12
@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.8 kB - -
@sentry/browser - with treeshaking flags 23.31 kB - -
@sentry/browser (incl. Tracing) 41.54 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.13 kB - -
@sentry/browser (incl. Tracing, Replay) 79.96 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.69 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.64 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.88 kB - -
@sentry/browser (incl. Feedback) 41.48 kB - -
@sentry/browser (incl. sendFeedback) 29.49 kB - -
@sentry/browser (incl. FeedbackAsync) 34.47 kB - -
@sentry/react 26.52 kB - -
@sentry/react (incl. Tracing) 43.74 kB - -
@sentry/vue 29.25 kB - -
@sentry/vue (incl. Tracing) 43.34 kB - -
@sentry/svelte 24.82 kB - -
CDN Bundle 27.21 kB - -
CDN Bundle (incl. Tracing) 42.21 kB - -
CDN Bundle (incl. Tracing, Replay) 78.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 84.2 kB - -
CDN Bundle - uncompressed 79.96 kB - -
CDN Bundle (incl. Tracing) - uncompressed 125.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 241.37 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 254.13 kB - -
@sentry/nextjs (client) 45.96 kB - -
@sentry/sveltekit (client) 41.9 kB - -
@sentry/node-core 51.27 kB +0.01% +1 B 🔺
@sentry/node 159.8 kB +0.18% +277 B 🔺
@sentry/node - without tracing 92.85 kB +0.01% +1 B 🔺
@sentry/aws-serverless 108.14 kB - -

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

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 8,826 - 9,276 -5%
GET With Sentry 1,705 19% 1,699 +0%
GET With Sentry (error only) 6,038 68% 6,110 -1%
POST Baseline 1,176 - 1,174 +0%
POST With Sentry 584 50% 587 -1%
POST With Sentry (error only) 1,032 88% 1,054 -2%
MYSQL Baseline 3,293 - 3,289 +0%
MYSQL With Sentry 504 15% 421 +20%
MYSQL With Sentry (error only) 2,647 80% 2,647 -

View base workflow run

This is the functional portion addressing JS-1002.

Prior to truncating text messages for their byte length, any inline
base64-encoded media properties are filtered out. This allows the
message to possibly be included in the span, indicating to the user that
a media object was present, without overflowing the allotted buffer for
sending data.

If a media message is not removed, the fallback is still to simply
remove it if its overhead grows too large.

Re JS-1002
Re GH-17810
@isaacs isaacs force-pushed the isaacschlueter/js-1002-drop-media-from-messages-in-sdks-and-document-behavior branch from 3512099 to 5d7bbc8 Compare December 5, 2025 23:13
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.

2 participants