Skip to content

ref(bun): Streamline auto-instrumentation integration handling - #23392

Merged
mydea merged 1 commit into
developfrom
fn/bun-auto-integrations
Aug 13, 2026
Merged

ref(bun): Streamline auto-instrumentation integration handling#23392
mydea merged 1 commit into
developfrom
fn/bun-auto-integrations

Conversation

@mydea

@mydea mydea commented Aug 13, 2026

Copy link
Copy Markdown
Member

No longer necessary to handle in bun specifically - we just add the node auto instrumentation and be done with it, they will noop without orchestrion but nothing changes there.

This also allows us to drop this export from server-utils.

@mydea mydea self-assigned this Aug 13, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f86c2ed. Configure here.

Comment thread packages/bun/src/sdk.ts
...autoPerformanceIntegrations.filter(integration => !replacedOtelIntegrationNames.has(integration.name)),
...channelIntegrationInstances,
];
return getAutoPerformanceIntegrations();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing AWS auto-instrumentation

Medium Severity

Switching Bun performance defaults to getAutoPerformanceIntegrations() drops awsIntegration, which the old channelIntegrations swap previously installed when the Bun plugin injected channels. The plugin still transforms AWS SDK packages, but those channels no longer have a subscriber in Bun defaults, so AWS SDK spans stop being recorded.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit f86c2ed. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

seems fine

@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.03 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 81.43 kB - -
@sentry/aws-serverless 90.92 kB - -
@sentry/cloudflare (withSentry) - minified 213.98 kB - -
@sentry/cloudflare (withSentry) 528.93 kB - -

View base workflow run

@mydea
mydea force-pushed the fn/bun-auto-integrations branch from f86c2ed to 4dcb7be Compare August 13, 2026 09:28
@mydea
mydea marked this pull request as ready for review August 13, 2026 11:07
@mydea
mydea requested review from a team as code owners August 13, 2026 11:07
@mydea
mydea requested review from JPeer264 and isaacs and removed request for a team August 13, 2026 11:07
@mydea
mydea force-pushed the fn/bun-auto-integrations branch from 4dcb7be to 0f9e132 Compare August 13, 2026 11:07
@mydea
mydea force-pushed the fn/bun-auto-integrations branch from 0f9e132 to 2609eb6 Compare August 13, 2026 12:59
@mydea
mydea enabled auto-merge (squash) August 13, 2026 13:11
No longer necessary to handle in bun specifically - we just add the node auto instrumentation and be done with it, they will noop without orchestrion but nothing changes there.
@mydea
mydea force-pushed the fn/bun-auto-integrations branch from 2609eb6 to cec2750 Compare August 13, 2026 17:24
@mydea
mydea merged commit c7199f3 into develop Aug 13, 2026
202 checks passed
@mydea
mydea deleted the fn/bun-auto-integrations branch August 13, 2026 17:38
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