Skip to content

0.48.4

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 07 Jul 09:39

New Features

  • Added builder-style setters to ClientOptions (#1221):

    // 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");

Deprecations

  • Constructing ClientOptions with struct-literal syntax, including ..Default::default() functional update syntax, is deprecated and will stop compiling in the next breaking release, as we will mark ClientOptions as #[non_exhaustive] (#1221). Reading and assigning individual public fields will remain supported. Please migrate to the builder-style setters introduced in this release.