Skip to content

docs: add 13.x to 14.x upgrade guide - #1231

Merged
solnic merged 1 commit into
masterfrom
docs/upgrade-14-x-guide
Sep 24, 2026
Merged

solnic merged 1 commit into
masterfrom
docs/upgrade-14-x-guide

Conversation

@solnic

@solnic solnic commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Upgrade guide for 14.0.0.

@solnic
solnic marked this pull request as ready for review September 24, 2026 13:53
Comment thread pages/upgrade-14.x.md

## Replace `:enable_logs` with `:logs`

The `:enable_logs` option was removed. Sentry validates its configuration when it starts, so an application that still sets `:enable_logs` fails to boot.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: The upgrade documentation incorrectly states that using deprecated keys like :enable_logs will cause a boot failure. These keys are silently ignored, which can lead to silent misconfiguration.
Severity: MEDIUM

Suggested Fix

Update the documentation in pages/upgrade-14.x.md to accurately describe that old configuration keys are silently stripped, and will not cause a boot failure. Warn users to check their configuration to ensure features like logging are still enabled with the new keys.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: pages/upgrade-14.x.md#L7

Potential issue: The upgrade documentation at `pages/upgrade-14.x.md` incorrectly states
that using removed configuration options like `:enable_logs` or `:enable_metrics` will
cause the application to fail on boot. In reality, the configuration validation in
`lib/sentry/config.ex` uses `Keyword.take(@valid_keys)`, which silently strips any
unrecognized keys. Consequently, an application using these old keys will boot
successfully. This can lead to silent misconfigurations, such as a user removing
`enable_logs: true` without adding the new `logs` configuration, resulting in structured
logs no longer being sent without any warning.

Also affects:

  • pages/upgrade-14.x.md:34

Did we get this right? 👍 / 👎 to inform future reviews.

@whatyouhide whatyouhide left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lovely, no comments

@solnic
solnic merged commit edb3ecf into master Sep 24, 2026
16 checks passed
@solnic
solnic deleted the docs/upgrade-14-x-guide branch September 24, 2026 14:36
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.

2 participants