GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(lint): Require a DEBUG_BUILD gate on debug logs in browser-facing code by sentry-junior[bot] · Pull Request #26861 · getsentry/sentry-javascript

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What

Adds sdk/no-unguarded-debug-logs, which flags debug.log / debug.warn / debug.error calls without a DEBUG_BUILD gate in core and in the browser-facing packages from no-unguarded-span-apis (that map now lives in a shared utils/browser-facing.js). Current develop has 13 hits. The 6 in browser-reachable code now use DEBUG_BUILD && debug.x(...). logIgnoredSpan gets a disable comment because both of its callers already gate it. The 6 in tunnelForward.ts and flushIfServerless.ts get a file-level disable because those files are server-only, so their logging stays as it is.

Why

Without the gate, the message strings ship in production bundles. This moves the Bugbot rule into Oxlint.

The rule accepts if (DEBUG_BUILD) { ... }, DEBUG_BUILD ? ... : ..., and an early if (!DEBUG_BUILD) return; as gates, not just the short-circuit form. Minifiers remove all of them the same way, so requiring && would rewrite the existing if (DEBUG_BUILD) blocks (19 in browser-facing code) without saving bytes. The early-return form is why dsn.ts and logSpans.ts from the original scan don't count as hits. The Bugbot debug rule is removed, including its preference for the short-circuit form, since minifiers drop both forms the same way.

All of core/src is in scope because the rule can't tell which core files reach a browser bundle. Server-only core files opt out explicitly.

Part of #26852

via @mydea.

--

View Session [Sentry]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sentry-junior sentry-junior Bot assigned mydea Nov 25, 2026
@sentry-junior sentry-junior Bot mentioned this pull request Nov 25, 2026
Move mechanical Bugbot rules to lint and CI checks #26852
Open
4 of 13 tasks
@github-actions

github-actions Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: e65348c (PR test merge using develop at b06ca66)

Against: b06ca66 (develop) · base run #67921

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.54 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.6 kB - -
@sentry/browser (incl. Tracing) 53.66 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing Core) 40.58 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.66 kB -0.01% -4 B 🔽
@sentry/browser (incl. Tracing, Profiling) 56.56 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay) 93.59 kB -0.01% -4 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.38 kB -0.09% -71 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 98.42 kB -0.01% -3 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 111.39 kB -0.01% -4 B 🔽
@sentry/browser (incl. Feedback) 48.4 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.16 kB - -
@sentry/browser (incl. Metrics) 31.86 kB - -
@sentry/browser (incl. Logs) 32.13 kB - -
@sentry/browser (incl. Metrics & Logs) 32.8 kB - -
@sentry/react 32.56 kB - -
@sentry/react (incl. Tracing) 56.37 kB -0.01% -4 B 🔽
@sentry/vue 38.74 kB - -
@sentry/vue (incl. Tracing) 56.67 kB -0.01% -5 B 🔽
@sentry/svelte 30.57 kB - -
@sentry/effect (client) 42.21 kB - -
@sentry/effect (client, incl. Tracing) 54.96 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.31 kB - -
@sentry/remix (Remix 3 client bundle) 59.39 kB -0.01% -4 B 🔽
CDN Bundle 32.38 kB -0.49% -158 B 🔽
CDN Bundle (incl. Tracing) 54.04 kB -0.2% -106 B 🔽
CDN Bundle (incl. Logs, Metrics) 35.13 kB -0.4% -138 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 56.5 kB -0.23% -129 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 76.08 kB -0.18% -137 B 🔽
CDN Bundle (incl. Tracing, Replay) 91.84 kB -0.11% -95 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.37 kB -0.11% -98 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 97.31 kB -0.09% -81 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.78 kB -0.08% -77 B 🔽
CDN Bundle - uncompressed 94.56 kB -0.38% -357 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 159.84 kB -0.26% -416 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 102.9 kB -0.35% -357 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.47 kB -0.25% -416 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.29 kB -0.14% -324 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.28 kB -0.14% -377 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 287.9 kB -0.14% -377 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.21 kB -0.13% -377 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 299.83 kB -0.13% -377 B 🔽
@sentry/nextjs (client) 60.08 kB -0.01% -4 B 🔽
@sentry/sveltekit (client) 55.02 kB -0.01% -4 B 🔽
@sentry/core/server 45.83 kB +0.01% +1 B 🔺
@sentry/core/browser 14.46 kB +0.01% +1 B 🔺
@sentry/node 156.92 kB +0.01% +3 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.78 kB -0.01% -3 B 🔽
@sentry/node - without channel injection 145.88 kB +0.01% +2 B 🔺
@sentry/aws-serverless 100.42 kB -0.01% -6 B 🔽
@sentry/cloudflare (withSentry) - minified 211.91 kB +0.01% +9 B 🔺
@sentry/cloudflare (withSentry) 491.68 kB +0.01% +45 B 🔺
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 214.86 kB +0.01% +9 B 🔺
@sentry/nextjs/cloudflare (withSentry) - minified 237.15 kB +0.01% +9 B 🔺

View base workflow run

sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 4 not successful, 79 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Failing after 1m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (no upload) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E fastify-5 (bun) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E hono-5 (deno) Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E express-5 (bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E express-5 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps enabled by Sentry) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E hono-5 (bun) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E fastify-5 (deno) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E express-5 (cloudflare) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E hono-5 (cloudflare) Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 (MCP SDK OpenTelemetry) Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 26s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hono-5 Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 29s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E nuxt-4-sourcemaps (Vite server) Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (manual upload) Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (delete all) Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (manual upload) Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (no upload) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E vinext-cf-workers (workers cache) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) Successful in 29s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (delete all) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E solid-2-ssr (cloudflare) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (no upload) Test (optional) Successful in 40s Details
sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry-junior Bot and others added 3 commits November 25, 2026 13:00
@sentry-junior @mydea
chore(lint): Require a DEBUG_BUILD gate on debug logs in browser-faci…
d464ccc
…ng code

Adds `sdk/no-unguarded-debug-logs`, which flags `debug.log` / `debug.warn` /
`debug.error` calls without a `DEBUG_BUILD` gate in `core` and browser-facing
packages, and gates the existing hits.

Part of #26852

Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior @mydea
chore(lint): Keep server-only core logs ungated
c0e2d82
Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior @mydea
chore(bugbot): Remove the debug log gate rule now enforced by lint
de2fb9c
Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior
sentry-junior Bot force-pushed the feat/lint-unguarded-debug-logs branch from ee1cbf3 to de2fb9c Compare November 25, 2026 13:01
mydea
mydea approved these changes Nov 25, 2026
View reviewed changes
@mydea
mydea marked this pull request as ready for review November 25, 2026 13:36
@mydea
mydea merged commit fc11404 into develop Nov 25, 2026
583 of 591 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mydea
mydea deleted the feat/lint-unguarded-debug-logs branch November 25, 2026 13:36
@sentry-release-bot sentry-release-bot Bot mentioned this pull request Nov 25, 2026
publish: getsentry/[email protected] getsentry/publish#10573
Closed
51 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mydea mydea mydea approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mydea mydea

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@mydea
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.