Repository navigation
chore: Deprecate the enable_logs option - #1299
Merged
Merged
Conversation
szokeasaurusrex
marked this pull request as ready for review
August 13, 2026 11:21
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c98feda. Configure here.
giortzisg
approved these changes
Aug 13, 2026
szokeasaurusrex
force-pushed
the
szokeasaurusrex/enable-logs-deprecation
branch
from
August 13, 2026 13:53
1d9ba55 to
fd719e1
Compare
szokeasaurusrex
force-pushed
the
szokeasaurusrex/enable-logs-deprecation
branch
from
August 25, 2026 07:32
fd719e1 to
88da24f
Compare
szokeasaurusrex
changed the base branch from
master
to
szokeasaurusrex/enable-metrics-deprecation
August 25, 2026 07:32
szokeasaurusrex
force-pushed
the
szokeasaurusrex/enable-logs-deprecation
branch
from
August 25, 2026 08:03
88da24f to
d1525b8
Compare
szokeasaurusrex
marked this pull request as draft
August 25, 2026 08:15
szokeasaurusrex
marked this pull request as ready for review
August 25, 2026 18:18
Member
Author
|
@giortzisg would appreciate re-review, as I made it now so |
Base automatically changed from
szokeasaurusrex/enable-metrics-deprecation
to
master
August 25, 2026 18:26
Providing the ability to disable sending logs is somewhat of a footgun, as this flag can prevent all Sentry logs from being sent, so this change turns that option into a no-op, ensuring logs are always enabled. Logs are only sent when users explicitly record them with the logging APIs we provide or when one of the integrations that captures logs (currently `tracing`, `log`, or `slog`) are enabled. Users who do not want logs can either stop using the logging APIs, disable the integrations which capture logs, or adjust said integrations' configurations. Resolves [#1297](#1297) Resolves [RUST-274](https://linear.app/getsentry/issue/RUST-274/deprecate-and-no-op-ify-enable-logs)
szokeasaurusrex
force-pushed
the
szokeasaurusrex/enable-logs-deprecation
branch
from
August 25, 2026 18:26
8022152 to
bd06b44
Compare
giortzisg
approved these changes
Aug 26, 2026
szokeasaurusrex
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Aug 26, 2026
getsentry/sentry-rust#1299 deprecates the Rust SDK's `enable_logs` option. This change removes the last-remaining reference to `enable_logs` in the Rust SDK's docs. Relates to getsentry/sentry-rust#1297 Relates to [RUST-274](https://linear.app/getsentry/issue/RUST-274/deprecate-and-no-op-ify-enable-logs)
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Disabling log sending via
ClientOptions::enable_logsis somewhat of a footgun, as this flag can prevent all Sentry logs from being sent. This change deprecates the option and restricts its effect: settingenable_logstofalsenow only disables automatic log capture by the log-capturing integrations (currentlytracingandlog, both with thelogsfeature). Logs captured manually via the logging APIs we provide (Hub::capture_logand thelogger_*macros) are always sent, regardless of the option's value.We also deprecate the option, as we will remove it in the next breaking release. The migration path is to configure the relevant integration via its own options to not send logs; each integration's documentation describes how to do this.
Resolves #1297
Resolves RUST-274