8000 fix(vue): Make `options` parameter optional on `attachErrorHandler` by Lms24 · Pull Request #18072 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@Lms24
Copy link
Member
@Lms24 Lms24 commented Oct 31, 2025

Looks like our Vue documentation for how to dynamically attach an errorHandler to a Vue app advertised that attachErrorHandler can be called without having to specify options. Intuitively, this makes sense to me since the only option we actually read is attachProps. We can instead default this to true (just like in the main Vue init option) and make the options parameter optional.

For v11, we should consider gating prop data attachment behind sendDefaultPii. I added a TODO to the code.

closes #18060

@Lms24 Lms24 self-assigned this Oct 31, 2025
@Lms24 Lms24 requested review from logaretm and s1gr1d October 31, 2025 15:51
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.64 kB - -
@sentry/browser - with treeshaking flags 23.13 kB - -
@sentry/browser (incl. Tracing) 41.26 kB - -
@sentry/browser (incl. Tracing, Profiling) 45.54 kB - -
@sentry/browser (incl. Tracing, Replay) 79.51 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.2 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.21 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.38 kB - -
@sentry/browser (incl. Feedback) 41.31 kB - -
@sentry/browser (incl. sendFeedback) 29.31 kB - -
@sentry/browser (incl. FeedbackAsync) 34.24 kB - -
@sentry/react 26.32 kB - -
@sentry/react (incl. Tracing) 43.24 kB - -
@sentry/vue 29.13 kB +0.02% +4 B 🔺
@sentry/vue (incl. Tracing) 43.05 kB +0.01% +3 B 🔺
@sentry/svelte 24.65 kB - -
CDN Bundle 26.9 kB - -
CDN Bundle (incl. Tracing) 41.8 kB - -
CDN Bundle (incl. Tracing, Replay) 78.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 83.56 kB - -
CDN Bundle - uncompressed 78.89 kB - -
CDN Bundle (incl. Tracing) - uncompressed 124.01 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 239.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 251.96 kB - -
@sentry/nextjs (client) 45.36 kB - -
@sentry/sveltekit (client) 41.67 kB - -
@sentry/node-core 50.81 kB - -
@sentry/node 157.88 kB - -
@sentry/node - without tracing 92.69 kB - -
@sentry/aws-serverless 106.42 kB - -

View base workflow run

@Lms24 Lms24 merged commit fbadeb8 into develop Nov 3, 2025
39 checks passed
@Lms24 Lms24 deleted the lms/fix-vue-attachErrorHandler branch November 3, 2025 10:37
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.

User Feedback: Sentry Vue SDK attachErrorHandler requires options argument

3 participants

0