Skip to content

docs(js): make logs enabled by default, drop required enableLogs flag - #19080

Open
nicohrubec wants to merge 1 commit into
masterfrom
nh/enable-logs-default-true-js
Open

docs(js): make logs enabled by default, drop required enableLogs flag#19080
nicohrubec wants to merge 1 commit into
masterfrom
nh/enable-logs-default-true-js

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 20, 2026

Copy link
Copy Markdown
Member

10.71.0 changed the enableLogs default in the JS SDK to true. This updates the docs accordingly.

This PR already also includes the changes for the electron SDK where this is not yet released yet, so we'll need to wait for that (or potentially separate this into its own PR depending on the timeline there).

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 24, 2026 4:02pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 24, 2026 4:02pm

Request Review

JavaScript SDK logs will be on by default from v10.71.0, so users no
longer need to set enableLogs: true. Remove the flag from JS setup
snippets, onboarding config blocks, and integration docs, and drop the
now no-op "logs" onboarding toggle from JS pages (kept for Effect, whose
block still wires up SentryEffectLogger).

Dedicated logs-setup and logging-integration pages gain a version alert
noting that on SDK versions below 10.71.0 enableLogs: true is still
required. The enableLogs option default is updated to true.

Note: 10.71.0 is a placeholder pending the final default-on version.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec force-pushed the nh/enable-logs-default-true-js branch from c883425 to d244219 Compare August 24, 2026 15:51
@nicohrubec
nicohrubec marked this pull request as ready for review August 24, 2026 15:52
Comment on lines +759 to +761
<Alert>
On SDK versions below `10.71.0`, logs are opt-in. Set `enableLogs: true` in your `Sentry.init` to send them.
</Alert>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: would have moved that into an for not duplicating it so often but non blocking.

nicohrubec added a commit to getsentry/sentry that referenced this pull request Aug 26, 2026
Logs are enabled by default as of JS SDK `10.71.0`, so the in-product
onboardings should no longer set `enableLogs: true`. This mirrors the
docs change in getsentry/sentry-docs#19080.

Also noticed that the `tanstackstart-react` setup was missing next-steps
and verify sections for logs/metrics so added these.

@coolguyzone coolguyzone 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.

LGTM.

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