Skip to content

Conversation

AbhiPrasad
Copy link
Member

This enables the console logging integration by default in node, bun, cloudflare, and vercel-edge sdks. By enabling it in the node sdk, we also enable it in the aws serverless and google cloud function sdks.

In v11 we can refactor this as we'll use the consoleIntegration to handle this. See #17702 for more details.

@AbhiPrasad AbhiPrasad requested a review from a team September 23, 2025 18:32
@AbhiPrasad AbhiPrasad self-assigned this Sep 23, 2025
@AbhiPrasad AbhiPrasad requested review from stephanie-anderson and chargome and removed request for a team September 23, 2025 18:32
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Sep 23, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.26 kB - -
@sentry/browser - with treeshaking flags 22.77 kB - -
@sentry/browser (incl. Tracing) 40.45 kB - -
@sentry/browser (incl. Tracing, Replay) 78.83 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.47 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 83.5 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 95.69 kB - -
@sentry/browser (incl. Feedback) 40.97 kB - -
@sentry/browser (incl. sendFeedback) 28.91 kB - -
@sentry/browser (incl. FeedbackAsync) 33.85 kB - -
@sentry/react 25.98 kB - -
@sentry/react (incl. Tracing) 42.42 kB - -
@sentry/vue 28.77 kB - -
@sentry/vue (incl. Tracing) 42.26 kB - -
@sentry/svelte 24.29 kB - -
CDN Bundle 25.77 kB - -
CDN Bundle (incl. Tracing) 40.33 kB - -
CDN Bundle (incl. Tracing, Replay) 76.58 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 82.08 kB - -
CDN Bundle - uncompressed 75.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 119.36 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 234.52 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 247.28 kB - -
@sentry/nextjs (client) 44.42 kB - -
@sentry/sveltekit (client) 40.87 kB - -
@sentry/node-core 51.68 kB +2.21% +1.11 kB 🔺
@sentry/node 155.49 kB +0.86% +1.31 kB 🔺
@sentry/node - without tracing 93.46 kB +1.14% +1.04 kB 🔺
@sentry/aws-serverless 107.29 kB +1.09% +1.15 kB 🔺

View base workflow run

Copy link
Contributor

github-actions bot commented Sep 23, 2025

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 8,658 - 8,651 +0%
GET With Sentry 1,305 15% 1,353 -4%
GET With Sentry (error only) 5,936 69% 6,047 -2%
POST Baseline 1,171 - 1,171 -
POST With Sentry 488 42% 514 -5%
POST With Sentry (error only) 1,030 88% 1,036 -1%
MYSQL Baseline 3,212 - 3,260 -1%
MYSQL With Sentry 390 12% 452 -14%
MYSQL With Sentry (error only) 2,648 82% 2,663 -1%

View base workflow run

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Nice!

Comment on lines +55 to +58
if (options.enableLogs) {
// TODO(v11): Remove this once we add logs to the `consoleIntegration`.
integrations.push(consoleLoggingIntegration());
}
Copy link
Member

Choose a reason for hiding this comment

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

no action required: Not sure if it makes sense to unify consoleIntegration and consoleLoggingIntegration. Probably depends on our plan for breadcrumbs going forward but I kinda like smaller single-purpose integrations over larger ones.

cursor[bot]

This comment was marked as outdated.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) September 24, 2025 23:59
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.

3 participants