Skip to content

feat(nextjs): Filter unwanted segments when span streaming is enabled#20384

Draft
Lms24 wants to merge 1 commit intodevelopfrom
lms/feat-nextjs-client-event-processor-migration
Draft

feat(nextjs): Filter unwanted segments when span streaming is enabled#20384
Lms24 wants to merge 1 commit intodevelopfrom
lms/feat-nextjs-client-event-processor-migration

Conversation

@Lms24
Copy link
Copy Markdown
Member

@Lms24 Lms24 commented Apr 17, 2026

closes #20374

This is a pretty neat case where I think we can even get rid of the event processors entirely and just rely on ignoreSpans for transactions and streamed spans. Let's see if CI agrees.

Needs tests to check the span streaming code path! Please feel free to pick this up or close with another PR doing it differently :)

@Lms24 Lms24 changed the title feat(nextjs): Filtering unwanted segments in span streaming feat(nextjs): Filter unwanted segments when span streaming is enabled Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.78 kB - -
@sentry/browser - with treeshaking flags 24.27 kB - -
@sentry/browser (incl. Tracing) 43.65 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 45.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 48.58 kB - -
@sentry/browser (incl. Tracing, Replay) 82.79 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 72.29 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 87.49 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 99.74 kB - -
@sentry/browser (incl. Feedback) 42.59 kB - -
@sentry/browser (incl. sendFeedback) 30.45 kB - -
@sentry/browser (incl. FeedbackAsync) 35.45 kB - -
@sentry/browser (incl. Metrics) 27.07 kB - -
@sentry/browser (incl. Logs) 27.2 kB - -
@sentry/browser (incl. Metrics & Logs) 27.89 kB - -
@sentry/react 27.53 kB - -
@sentry/react (incl. Tracing) 45.92 kB - -
@sentry/vue 30.61 kB - -
@sentry/vue (incl. Tracing) 45.49 kB - -
@sentry/svelte 25.8 kB - -
CDN Bundle 28.46 kB - -
CDN Bundle (incl. Tracing) 44.73 kB - -
CDN Bundle (incl. Logs, Metrics) 29.83 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 45.81 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 68.73 kB - -
CDN Bundle (incl. Tracing, Replay) 81.68 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 82.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 87.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 88.27 kB - -
CDN Bundle - uncompressed 83.12 kB - -
CDN Bundle (incl. Tracing) - uncompressed 133.75 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 87.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 137.17 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 210.63 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 250.99 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 254.38 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 263.9 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 267.29 kB - -
@sentry/nextjs (client) 48.42 kB -0.06% -27 B 🔽
@sentry/sveltekit (client) 44.09 kB - -
@sentry/node-core 57.94 kB +0.02% +6 B 🔺
@sentry/node 174.77 kB +0.01% +7 B 🔺
@sentry/node - without tracing 97.89 kB +0.03% +20 B 🔺
@sentry/aws-serverless 115.12 kB +0.01% +8 B 🔺

View base workflow run

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.

Event processor migration: NextJS client event processors

1 participant