Skip to content

feat(bun): Add orchestrion bun build plugin#21410

Open
isaacs wants to merge 1 commit into
experiment/orchestrionjs-auto-instrumentationfrom
isaacs/bun-orchestrion
Open

feat(bun): Add orchestrion bun build plugin#21410
isaacs wants to merge 1 commit into
experiment/orchestrionjs-auto-instrumentationfrom
isaacs/bun-orchestrion

Conversation

@isaacs

@isaacs isaacs commented Jun 9, 2026

Copy link
Copy Markdown
Member

Use the orchestrion plugin defined in server-utils, and create a plugin that Bun can use in bun build mode.

Note: this does not provide a plugin for use with bun run, because that feature is blocked by oven-sh/bun#31770

When that issue resolves, we can look into providing this for the bun runtime, likely with a version guard to avoid the footgun of removing CommonJS exports in some cases.

@isaacs isaacs requested a review from a team as a code owner June 9, 2026 19:23
@isaacs isaacs requested review from JPeer264 and mydea and removed request for a team June 9, 2026 19:24
@isaacs isaacs force-pushed the experiment/orchestrionjs-auto-instrumentation branch from 48fa3e3 to 0157d09 Compare June 9, 2026 19:27
Use the orchestrion plugin defined in server-utils, and create a plugin
that Bun can use in `bun build` mode.

Note: this does *not* provide a plugin for use with `bun run`, because
that feature is blocked by oven-sh/bun#31770

When that issue resolves, we can look into providing this for the bun
runtime, likely with a version guard to avoid the footgun of removing
CommonJS exports in some cases.
@isaacs isaacs force-pushed the isaacs/bun-orchestrion branch from 362c870 to 39be3da Compare June 9, 2026 19:28
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.39 kB - -
@sentry/browser - with treeshaking flags 25.82 kB - -
@sentry/browser (incl. Tracing) 45.68 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.92 kB - -
@sentry/browser (incl. Tracing, Profiling) 50.48 kB - -
@sentry/browser (incl. Tracing, Replay) 84.9 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.51 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.6 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.28 kB - -
@sentry/browser (incl. Feedback) 44.55 kB - -
@sentry/browser (incl. sendFeedback) 32.19 kB - -
@sentry/browser (incl. FeedbackAsync) 37.3 kB - -
@sentry/browser (incl. Metrics) 28.46 kB - -
@sentry/browser (incl. Logs) 28.69 kB - -
@sentry/browser (incl. Metrics & Logs) 29.39 kB - -
@sentry/react 29.18 kB - -
@sentry/react (incl. Tracing) 47.98 kB - -
@sentry/vue 32.4 kB - -
@sentry/vue (incl. Tracing) 47.57 kB - -
@sentry/svelte 27.41 kB - -
CDN Bundle 29.78 kB - -
CDN Bundle (incl. Tracing) 48.16 kB - -
CDN Bundle (incl. Logs, Metrics) 31.32 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.48 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.61 kB - -
CDN Bundle (incl. Tracing, Replay) 85.51 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.6 kB - -
CDN Bundle - uncompressed 88.46 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.67 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 93.17 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 217.99 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.54 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.5 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.19 kB - -
@sentry/nextjs (client) 50.43 kB - -
@sentry/sveltekit (client) 46.1 kB - -
@sentry/core/server 76.01 kB - -
@sentry/core/browser 63.14 kB - -
@sentry/node-core 61.72 kB -0.01% -4 B 🔽
@sentry/node 130.44 kB +0.04% +43 B 🔺
@sentry/node - without tracing 74.1 kB -0.01% -1 B 🔽
@sentry/aws-serverless 86.29 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 173.69 kB - -
@sentry/cloudflare (withSentry) 433.85 kB - -
@sentry/node (with Orchestrion) 131.56 kB added added
@sentry/node/orchestrion (ESM hook) 69.88 kB added added
@sentry/node/light 50.77 kB added added

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.

1 participant