Skip to content

fix(server-utils)!: Register channel integrations on versions with native channels - #23405

Draft
JPeer264 wants to merge 2 commits into
developfrom
jp/orchestrion-channel-native
Draft

fix(server-utils)!: Register channel integrations on versions with native channels#23405
JPeer264 wants to merge 2 commits into
developfrom
jp/orchestrion-channel-native

Conversation

@JPeer264

Copy link
Copy Markdown
Member

Problem

When injecting tracing channels via Orchestrion we also added the integration on the fly to safe some bytes on the SDK itself and only add integrations where we need them. The main problem is that in the future (and for some integrations already today) we didn't inject the integration into the bundle when the integration already had tracing channels baked in in the library and our matchers wouldn't match a version number.

Solution

This adds now a "fake channel" for libraries that have tracing channels baked in. Every integration that has a version with tracing channels included adds a tracing channel with the name orchestrion:<package—name>:module-registration which doesn't do anything actually rather than activating the necessary customTransforms that actually adds our integration into the machinery.

This is btw only breaking because in Cloudflare we removed the vercelAIIntegration by default, but this only affects v11, so I didn't add it to the migration.md

@JPeer264 JPeer264 self-assigned this Aug 13, 2026
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.3 kB - -
@sentry/browser - with treeshaking flags 28.47 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.81 kB - -
@sentry/browser (incl. Tracing) 48.58 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.59 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.46 kB - -
@sentry/browser (incl. Tracing, Replay) 87.98 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.36 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.7 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.39 kB - -
@sentry/browser (incl. Feedback) 47.65 kB - -
@sentry/browser (incl. sendFeedback) 35.13 kB - -
@sentry/browser (incl. FeedbackAsync) 40.28 kB - -
@sentry/browser (incl. Metrics) 31.24 kB - -
@sentry/browser (incl. Logs) 31.52 kB - -
@sentry/browser (incl. Metrics & Logs) 32.15 kB - -
@sentry/react 32.09 kB - -
@sentry/react (incl. Tracing) 50.77 kB - -
@sentry/vue 35.34 kB - -
@sentry/vue (incl. Tracing) 50.54 kB - -
@sentry/svelte 30.33 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.9 kB - -
CDN Bundle (incl. Logs, Metrics) 33.8 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.82 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.31 kB - -
CDN Bundle (incl. Tracing, Replay) 86.48 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.31 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.19 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.12 kB - -
CDN Bundle - uncompressed 93.84 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.75 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.44 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.08 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.01 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.68 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.71 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.37 kB - -
@sentry/nextjs (client) 53.29 kB - -
@sentry/sveltekit (client) 49 kB - -
@sentry/core/server 65.38 kB - -
@sentry/core/browser 51.72 kB - -
@sentry/node 117.09 kB +0.09% +104 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 81.56 kB +0.16% +125 B 🔺
@sentry/aws-serverless 91.04 kB +0.13% +118 B 🔺
@sentry/cloudflare (withSentry) - minified 194.35 kB -9.18% -19.64 kB 🔽
@sentry/cloudflare (withSentry) 480.53 kB -9.16% -48.4 kB 🔽

View base workflow run

@JPeer264
JPeer264 force-pushed the jp/orchestrion-channel-native branch from ee7ea79 to c35446b Compare August 13, 2026 14:51
@JPeer264
JPeer264 force-pushed the jp/orchestrion-channel-native branch from c35446b to 3d8f160 Compare August 14, 2026 09:17
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.

1 participant