Skip to content

chore: Add experimentalUseDiagnosticsChannelInjection in node size-limit#21992

Merged
JPeer264 merged 1 commit into
developfrom
jp/experimental-size
Jul 6, 2026
Merged

chore: Add experimentalUseDiagnosticsChannelInjection in node size-limit#21992
JPeer264 merged 1 commit into
developfrom
jp/experimental-size

Conversation

@JPeer264

@JPeer264 JPeer264 commented Jul 6, 2026

Copy link
Copy Markdown
Member

It appears that experimentalUseDiagnosticsChannelInjection is adding 5kb gzipped to the base bundle. This adds now the indicator for future PRs.

@JPeer264 JPeer264 requested review from a team, Copilot and mydea July 6, 2026 14:43
@JPeer264 JPeer264 self-assigned this Jul 6, 2026
@JPeer264 JPeer264 requested review from chargome and nicohrubec and removed request for a team July 6, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new size-limit check for @sentry/node when also importing the experimental diagnostics-channel injection entrypoint, to track (and prevent regressions in) the additional gzipped bundle cost of opting into experimentalUseDiagnosticsChannelInjection.

Changes:

  • Add a new .size-limit.js entry measuring @sentry/node when importing both init and experimentalUseDiagnosticsChannelInjection.
  • Introduce a dedicated gzipped size budget (132 KB) for that usage variant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .size-limit.js
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 27.59 kB - -
@sentry/browser - with treeshaking flags 26.03 kB - -
@sentry/browser (incl. Tracing) 46.24 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.01 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.01 kB - -
@sentry/browser (incl. Tracing, Replay) 85.49 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.1 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.19 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.84 kB - -
@sentry/browser (incl. Feedback) 44.76 kB - -
@sentry/browser (incl. sendFeedback) 32.38 kB - -
@sentry/browser (incl. FeedbackAsync) 37.51 kB - -
@sentry/browser (incl. Metrics) 28.67 kB - -
@sentry/browser (incl. Logs) 28.91 kB - -
@sentry/browser (incl. Metrics & Logs) 29.59 kB - -
@sentry/react 29.38 kB - -
@sentry/react (incl. Tracing) 48.51 kB - -
@sentry/vue 33.03 kB - -
@sentry/vue (incl. Tracing) 48.11 kB - -
@sentry/svelte 27.61 kB - -
CDN Bundle 30 kB - -
CDN Bundle (incl. Tracing) 48.24 kB - -
CDN Bundle (incl. Logs, Metrics) 31.57 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.54 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.77 kB - -
CDN Bundle (incl. Tracing, Replay) 85.7 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.49 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.78 kB - -
CDN Bundle - uncompressed 89.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.96 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.05 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.93 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.59 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.97 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.68 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.62 kB - -
@sentry/nextjs (client) 50.95 kB - -
@sentry/sveltekit (client) 46.65 kB - -
@sentry/core/server 78.38 kB - -
@sentry/core/browser 64.73 kB - -
@sentry/node-core 63.21 kB +0.03% +15 B 🔺
@sentry/node 123.77 kB +0.46% +563 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.95 kB - -
@sentry/node/light 50.72 kB - -
@sentry/node - without tracing 74.82 kB +0.78% +576 B 🔺
@sentry/aws-serverless 85.59 kB +0.68% +573 B 🔺
@sentry/cloudflare (withSentry) - minified 181.68 kB - -
@sentry/cloudflare (withSentry) 449.39 kB - -
@sentry/node (incl. diagnostics channel injection) 128.78 kB added added

View base workflow run

@JPeer264 JPeer264 merged commit def67d2 into develop Jul 6, 2026
299 checks passed
@JPeer264 JPeer264 deleted the jp/experimental-size branch July 6, 2026 15:15
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.

4 participants