Skip to content

docs(native): remove mention of enable_logs/metrics - #19041

Draft
JoshuaMoelans wants to merge 2 commits into
masterfrom
joshua/native/enable_logs_metrics_removal
Draft

docs(native): remove mention of enable_logs/metrics#19041
JoshuaMoelans wants to merge 2 commits into
masterfrom
joshua/native/enable_logs_metrics_removal

Conversation

@JoshuaMoelans

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

removing mention of the now-removed options to enable logs/metrics

⚠️⚠️⚠️
do not merge before getsentry/sentry-native#1980 is released
⚠️⚠️⚠️

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

@JoshuaMoelans
JoshuaMoelans marked this pull request as draft August 13, 2026 09:03
@vercel

vercel Bot commented Aug 13, 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 13, 2026 10:26am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 13, 2026 10:26am

Request Review

Comment on lines 15 to 17

## Usage

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.

Bug: The removal of the logging setup documentation for the Native SDK creates a risk. If merged before the corresponding SDK update, logging may silently fail for new users.
Severity: MEDIUM

Suggested Fix

To mitigate the risk of a documentation-SDK mismatch, either restore the setup instructions until the dependent SDK PR is released, or add a note explicitly stating that logs are zero-config and which SDK version is required for this behavior. This would provide clarity similar to how the Go SDK documentation handles it.

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: docs/platforms/native/logs/index.mdx#L15-L17

Potential issue: The pull request removes the "Setup" section from the Native logs
documentation, including the `enable_logs` option, assuming that logs will become
zero-config after an upcoming SDK release (`sentry-native#1980`). However, if this
documentation change is merged before the corresponding SDK is released, new users will
lack the necessary setup instructions. This will likely cause logging to fail silently,
as the SDK would still require the now-undocumented configuration. The documentation for
other zero-config SDKs, like Go, explicitly states this behavior, whereas these changes
simply remove the section, creating ambiguity.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah so that's why I added the big ⚠️ ⚠️ ⚠️ to the PR description 🙃

Comment on lines -143 to -148
<SdkOption name="enable_logs" type="bool" defaultValue="true">

This option enables the [logging integration](/platforms/native/logs), which allows the SDK to capture logs and send them to Sentry.

</SdkOption>

@JoshuaMoelans JoshuaMoelans Aug 13, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TBD: do we want to just remove them in their entirety, OR keep them around with a "removed in 0.x.x" warning?

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.

1 participant