Skip to content

Conversation

@chargome
Copy link
Member

closes #19002

@chargome chargome self-assigned this Jan 28, 2026
@linear
Copy link

linear bot commented Jan 28, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.32 kB - -
@sentry/browser - with treeshaking flags 23.83 kB - -
@sentry/browser (incl. Tracing) 42.14 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.78 kB - -
@sentry/browser (incl. Tracing, Replay) 80.76 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.4 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.47 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 97.65 kB - -
@sentry/browser (incl. Feedback) 42.04 kB - -
@sentry/browser (incl. sendFeedback) 30.01 kB - -
@sentry/browser (incl. FeedbackAsync) 35.01 kB - -
@sentry/browser (incl. Metrics) 26.43 kB - -
@sentry/browser (incl. Logs) 26.57 kB - -
@sentry/browser (incl. Metrics & Logs) 27.24 kB - -
@sentry/react 27.05 kB - -
@sentry/react (incl. Tracing) 44.37 kB - -
@sentry/vue 29.76 kB - -
@sentry/vue (incl. Tracing) 43.93 kB - -
@sentry/svelte 25.33 kB - -
CDN Bundle 27.89 kB - -
CDN Bundle (incl. Tracing) 42.93 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 43.75 kB - -
CDN Bundle (incl. Tracing, Replay) 79.68 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.11 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.03 kB - -
CDN Bundle - uncompressed 81.6 kB - -
CDN Bundle (incl. Tracing) - uncompressed 127.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 129.97 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 243.74 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.54 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 259.35 kB - -
@sentry/nextjs (client) 46.73 kB - -
@sentry/sveltekit (client) 42.51 kB - -
@sentry/node-core 52.02 kB +0.01% +1 B 🔺
@sentry/node 166.05 kB +0.01% +2 B 🔺
@sentry/node - without tracing 93.79 kB - -
@sentry/aws-serverless 109.31 kB - -
CDN Bundle (incl. Logs, Metrics) 28.73 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 84.44 kB added added

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,228 - 9,277 -1%
GET With Sentry 1,757 19% 1,793 -2%
GET With Sentry (error only) 6,230 68% 6,303 -1%
POST Baseline 1,219 - 1,199 +2%
POST With Sentry 599 49% 613 -2%
POST With Sentry (error only) 1,082 89% 1,064 +2%
MYSQL Baseline 3,368 - 3,382 -0%
MYSQL With Sentry 494 15% 507 -3%
MYSQL With Sentry (error only) 2,713 81% 2,727 -1%

View base workflow run

@chargome chargome marked this pull request as ready for review January 28, 2026 10:57
@chargome chargome requested review from Lms24 and andreiborza and removed request for andreiborza January 28, 2026 10:57
Copy link

@cursor cursor bot left a comment

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.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

expect(LogsMetricsBundle.logger).toBe(coreLogger);
expect(LogsMetricsBundle.metrics).toBe(coreMetrics);
});
});
Copy link

Choose a reason for hiding this comment

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

Unit test is incomplete compared to existing patterns

Low Severity · Bugbot Rules

The unit test only verifies logger and metrics exports, but all other bundle tests (e.g., index.bundle.test.ts, index.bundle.tracing.test.ts, index.bundle.tracing.logs.metrics.test.ts) also verify that integration shims are correctly exported. This test is missing assertions for browserTracingIntegration, feedbackIntegration, feedbackAsyncIntegration, replayIntegration (all should be shims), and consoleLoggingIntegration (should be the real implementation). This violates the review rule to "check that tests actually test the newly added behaviour" - incomplete coverage could miss regressions where shims are accidentally replaced with real implementations.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

That is simply not true.

@chargome chargome merged commit e60f960 into develop Jan 28, 2026
218 checks passed
@chargome chargome deleted the cg/JS-1566/add-logsmetrics-bundle branch January 28, 2026 12:07
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.

Add logs.metrics bundle

4 participants