Repository navigation
chore!(core): Make ClientOptions non-exhaustive - #1230
Merged
szokeasaurusrex merged 2 commits intoJul 21, 2026
Merged
Conversation
szokeasaurusrex
commented
Jul 7, 2026
|
|
||
| ### Breaking Changes | ||
|
|
||
| - [`ClientOptions`](https://docs.rs/sentry-core/0.49.0/sentry_core/struct.ClientOptions.html) is now `#[non_exhaustive]`. The struct must now be constructed with the builder-style setters: |
Member
Author
There was a problem hiding this comment.
This link will work after the release; we intend to release these changes as v0.49.0
szokeasaurusrex
requested review from
Litarnus and
giortzisg
and removed request for
alexander-alderman-webb
July 20, 2026 15:01
Make the `ClientOptions` struct `#[non_exhaustive]`. Users will now have to rely on the builder methods to construct `ClientOptions`. This change will allow us to introduce new configuration options in future SDK releases without requiring a breaking release. Closes [#1219](#1219) Closes [RUST-258](https://linear.app/getsentry/issue/RUST-258)
szokeasaurusrex
force-pushed
the
szokeasaurusrex/non-exhaustive-client-options
branch
2 times, most recently
from
July 20, 2026 16:27
c830b54 to
f83ecee
Compare
giortzisg
approved these changes
Jul 21, 2026
szokeasaurusrex
deleted the
szokeasaurusrex/non-exhaustive-client-options
branch
July 21, 2026 11:21
This was referenced Jul 28, 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.
Make the
ClientOptionsstruct#[non_exhaustive].Users will now have to rely on the builder methods to construct
ClientOptions. This change will allow us to introduce new configuration options in future SDK releases without requiring a breaking release.Closes #1219
Closes RUST-258