Skip to content

chore(server-utils): Simplify injectChannelSubscribers - #23033

Merged
timfish merged 2 commits into
developfrom
timfish/chore/simplify-injectChannelSubscribers
Aug 5, 2026
Merged

chore(server-utils): Simplify injectChannelSubscribers#23033
timfish merged 2 commits into
developfrom
timfish/chore/simplify-injectChannelSubscribers

Conversation

@timfish

@timfish timfish commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

This PR simplifies the injectChannelSubscribers orchestrion bundler feature to use the latest orchestrion-js feature which allows us to inject into every module we were already injecting into, rather than having to use additional injections to do this.

@timfish
timfish requested a review from a team as a code owner August 4, 2026 23:34
@timfish
timfish requested review from JPeer264, isaacs, msonnb and stephanie-anderson and removed request for a team, msonnb and stephanie-anderson August 4, 2026 23:34
Comment thread packages/server-utils/src/orchestrion/bundler/subscribeInjection.ts
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.13 kB - -
@sentry/browser - with treeshaking flags 28.33 kB - -
@sentry/browser (incl. Tracing) 47.54 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.55 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.29 kB - -
@sentry/browser (incl. Tracing, Replay) 86.92 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.33 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.61 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.25 kB - -
@sentry/browser (incl. Feedback) 47.45 kB - -
@sentry/browser (incl. sendFeedback) 34.97 kB - -
@sentry/browser (incl. FeedbackAsync) 40.11 kB - -
@sentry/browser (incl. Metrics) 31.2 kB - -
@sentry/browser (incl. Logs) 31.42 kB - -
@sentry/browser (incl. Metrics & Logs) 32.11 kB - -
@sentry/react 31.93 kB - -
@sentry/react (incl. Tracing) 49.8 kB - -
@sentry/vue 35.2 kB - -
@sentry/vue (incl. Tracing) 49.52 kB - -
@sentry/svelte 30.15 kB - -
CDN Bundle 32.14 kB - -
CDN Bundle (incl. Tracing) 47.82 kB - -
CDN Bundle (incl. Logs, Metrics) 33.68 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.19 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.02 kB - -
CDN Bundle (incl. Tracing, Replay) 85.46 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.27 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.59 kB - -
CDN Bundle - uncompressed 95.31 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.81 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.93 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.79 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.63 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.07 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.03 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.73 kB - -
@sentry/nextjs (client) 52.37 kB - -
@sentry/sveltekit (client) 47.99 kB - -
@sentry/core/server 65.55 kB - -
@sentry/core/browser 51.84 kB - -
@sentry/node 120.21 kB +0.08% +94 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.83 kB +0.12% +93 B 🔺
@sentry/aws-serverless 92.33 kB +0.11% +99 B 🔺
@sentry/cloudflare (withSentry) - minified 218.59 kB - -
@sentry/cloudflare (withSentry) 538.52 kB - -

View base workflow run

@timfish
timfish marked this pull request as draft August 4, 2026 23:46
@timfish
timfish removed request for JPeer264 and isaacs August 4, 2026 23:46
@timfish
timfish marked this pull request as ready for review August 5, 2026 10:40
@timfish
timfish requested review from JPeer264 and isaacs August 5, 2026 10:40

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Amazing thanks for simplifying that

@@ -1,5 +1,4 @@
import type { InstrumentationConfig } from '..';
import { toSubscribeInjections } from './subscribe-injection';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nothing to act in this PR. I just saw that we don't have getModuleNames in this integration. We might have missed that.

cc @isaacs is that something we should add?

@@ -1,5 +1,4 @@
import type { InstrumentationConfig } from '..';
import { toSubscribeInjections } from './subscribe-injection';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@@ -1,5 +1,4 @@
import type { InstrumentationConfig } from '..';
import { toSubscribeInjections } from './subscribe-injection';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@timfish
timfish merged commit e89ffe1 into develop Aug 5, 2026
519 of 521 checks passed
@timfish
timfish deleted the timfish/chore/simplify-injectChannelSubscribers branch August 5, 2026 12:43
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