Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## Unreleased

### Breaking Changes

- [`ClientOptions`](https://docs.rs/sentry-core/0.49.0/sentry_core/struct.ClientOptions.html) is now `#[non_exhaustive]` ([#1230](https://github.com/getsentry/sentry-rust/pull/1230)). The struct must now be constructed with the builder-style setters:

```rust
// Before
let options = sentry::ClientOptions {
dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
debug: true,
release: Some("my-app@1.0.0".into()),
..Default::default()
};

// After
let options = sentry::ClientOptions::new()
.dsn("https://examplePublicKey@o0.ingest.sentry.io/0")
.debug(true)
.release("my-app@1.0.0");
```

## 0.48.4

### New Features
Expand Down
1 change: 1 addition & 0 deletions sentry-core/src/clientoptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl MaxRequestBodySize {
/// ```
#[derive(Clone)]
#[must_use = "ClientOptions must be passed to sentry::init to have any effect"]
#[non_exhaustive]
pub struct ClientOptions {
// Common options
/// The DSN to use.
Expand Down
Loading