Update Rust crate sentry to 0.49.0 #71

Merged
redbinder0526 merged 1 commit from renovate/sentry-rust-monorepo into main 2026-07-29 15:48:10 +02:00
Owner

This PR contains the following updates:

Package Type Update Change
sentry (source) dependencies minor 0.48.00.49.0

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

getsentry/sentry-rust (sentry)

v0.49.0

Compare Source

Breaking Changes
  • ClientOptions is now #[non_exhaustive] (#​1230). The struct must now be constructed with the builder-style setters:

    // 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");
    
  • Updated the sentry-opentelemetry integration to support OpenTelemetry 0.32. Users of the integration must update their OpenTelemetry dependencies from 0.29 to 0.32 (#​1262).

  • The logs and metrics features are now enabled by default in the sentry crate. This does not break the API, but may cause new telemetry to be sent to Sentry: log and tracing integrations can send structured logs, and applications can send metrics without adding the feature flags. Disable these features explicitly if this additional telemetry is not desired (#​1251).

  • Removed the public ClientOptions::sample_rate field. Use ClientOptions::event_sampling_strategy to inspect the configured event sampling strategy, and use the existing ClientOptions::sample_rate(...) builder setter to configure fixed-rate sampling.

  • Removed the public ClientOptions::sample_rate field. Use ClientOptions::event_sampling_strategy to inspect the configured event sampling strategy, and use the existing ClientOptions::sample_rate(...) builder setter to configure fixed-rate sampling (#​1228).

  • Removed the public ClientOptions::traces_sample_rate and ClientOptions::traces_sampler fields. Use ClientOptions::traces_sampling_strategy to inspect the configured traces sampling strategy, and use the existing ClientOptions::traces_sample_rate(...) and ClientOptions::traces_sampler(...) builder setters to configure fixed-rate and callback-based sampling (#​1227).

  • EnvelopeItem now stores Event and Transaction payloads in Box values. Code that constructs or pattern-matches these variants must account for the additional indirection (#​1255).

  • The sentry_log::RecordMapping enum's Event now stores the event in a Box (#​1269).

  • sentry_slog::RecordMapping is now #[non_exhaustive] and the Event variant now stores a boxed Event<'static> (#​1270)

  • The sentry_tracing::EventMapping enum's Event variant is now stored in a Box (#​1272)

New Features
Improvements
Fixes
  • Restored the reqwest transport's pre-0.13 protocol features by disabling HTTP/2 and native-TLS ALPN (#​1258).
  • EnvelopeError is now #[non_exhaustive] to allow adding new error variants without a breaking change (#​1254).

v0.48.5

Compare Source

Fixes
  • Fixed a bug that could cause the SDK to panic and, in some cases, panic while handling the panic, aborting the process (#​1241).

v0.48.4

Compare Source

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.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [sentry](https://sentry.io/welcome/) ([source](https://github.com/getsentry/sentry-rust)) | dependencies | minor | `0.48.0` → `0.49.0` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/14) for more information. --- ### Release Notes <details> <summary>getsentry/sentry-rust (sentry)</summary> ### [`v0.49.0`](https://github.com/getsentry/sentry-rust/blob/HEAD/CHANGELOG.md#0490) [Compare Source](https://github.com/getsentry/sentry-rust/compare/0.48.5...0.49.0) ##### Breaking Changes - [`ClientOptions`](https://docs.rs/sentry-core/0.49.0/sentry_core/struct.ClientOptions.html) is now `#[non_exhaustive]` ([#&#8203;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"); ``` - Updated the `sentry-opentelemetry` integration to support OpenTelemetry 0.32. Users of the integration must update their OpenTelemetry dependencies from 0.29 to 0.32 ([#&#8203;1262](https://github.com/getsentry/sentry-rust/pull/1262)). - The `logs` and `metrics` features are now enabled by default in the `sentry` crate. This does not break the API, but may cause new telemetry to be sent to Sentry: log and tracing integrations can send structured logs, and applications can send metrics without adding the feature flags. Disable these features explicitly if this additional telemetry is not desired ([#&#8203;1251](https://github.com/getsentry/sentry-rust/pull/1251)). - Removed the public `ClientOptions::sample_rate` field. Use `ClientOptions::event_sampling_strategy` to inspect the configured event sampling strategy, and use the existing `ClientOptions::sample_rate(...)` builder setter to configure fixed-rate sampling. - Removed the public `ClientOptions::sample_rate` field. Use `ClientOptions::event_sampling_strategy` to inspect the configured event sampling strategy, and use the existing `ClientOptions::sample_rate(...)` builder setter to configure fixed-rate sampling ([#&#8203;1228](https://github.com/getsentry/sentry-rust/pull/1228)). - Removed the public `ClientOptions::traces_sample_rate` and `ClientOptions::traces_sampler` fields. Use `ClientOptions::traces_sampling_strategy` to inspect the configured traces sampling strategy, and use the existing `ClientOptions::traces_sample_rate(...)` and `ClientOptions::traces_sampler(...)` builder setters to configure fixed-rate and callback-based sampling ([#&#8203;1227](https://github.com/getsentry/sentry-rust/pull/1227)). - [`EnvelopeItem`](https://docs.rs/sentry-types/0.49.0/sentry_types/protocol/envelope/enum.EnvelopeItem.html) now stores `Event` and `Transaction` payloads in `Box` values. Code that constructs or pattern-matches these variants must account for the additional indirection ([#&#8203;1255](https://github.com/getsentry/sentry-rust/pull/1255)). - The `sentry_log::RecordMapping` enum's `Event` now stores the event in a `Box` ([#&#8203;1269](https://github.com/getsentry/sentry-rust/pull/1269)). - `sentry_slog::RecordMapping` is now `#[non_exhaustive]` and the `Event` variant now stores a boxed `Event<'static>` ([#&#8203;1270](https://github.com/getsentry/sentry-rust/pull/1270)) - The `sentry_tracing::EventMapping` enum's `Event` variant is now stored in a `Box` ([#&#8203;1272](https://github.com/getsentry/sentry-rust/pull/1272)) ##### New Features - Added [`TracePropagationContext`](https://docs.rs/sentry-core/latest/sentry_core/struct.TracePropagationContext.html) as the preferred type for Sentry trace propagation metadata. The existing [`SentryTrace`](https://docs.rs/sentry-core/latest/sentry_core/struct.SentryTrace.html) type remains available for backwards compatibility ([#&#8203;1212](https://github.com/getsentry/sentry-rust/pull/1212)). - Added [`Dsn::org_id`](https://docs.rs/sentry-types/latest/sentry_types/struct.Dsn.html#method.org_id), which parses the Sentry SaaS organization ID from DSN hosts such as `o123.ingest.sentry.io` ([#&#8203;1202](https://github.com/getsentry/sentry-rust/pull/1202)). - Added [`ClientOptions::org_id`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#method.org_id) and [`ClientOptions::strict_trace_continuation`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#method.strict_trace_continuation) ([#&#8203;1203](https://github.com/getsentry/sentry-rust/pull/1203)). These options control how traces are continued and can help prevent traces from third-party services, which happen to be instrumented with Sentry, from being continued. ##### Improvements - Improved trace continuation safety by rejecting incoming traces with incompatible `sentry-org_id` values when starting transactions, according to [strict trace continuation rules](https://develop.sentry.dev/sdk/foundations/trace-propagation/#continuing-traces) ([#&#8203;1218](https://github.com/getsentry/sentry-rust/pull/1218)). ##### Fixes - Restored the reqwest transport's pre-0.13 protocol features by disabling HTTP/2 and native-TLS ALPN ([#&#8203;1258](https://github.com/getsentry/sentry-rust/pull/1258)). - [`EnvelopeError`](https://docs.rs/sentry-types/0.49.0/sentry_types/protocol/envelope/enum.EnvelopeError.html) is now `#[non_exhaustive]` to allow adding new error variants without a breaking change ([#&#8203;1254](https://github.com/getsentry/sentry-rust/pull/1254)). ### [`v0.48.5`](https://github.com/getsentry/sentry-rust/blob/HEAD/CHANGELOG.md#0485) [Compare Source](https://github.com/getsentry/sentry-rust/compare/0.48.4...0.48.5) ##### Fixes - Fixed a bug that could cause the SDK to panic and, in some cases, panic while handling the panic, aborting the process ([#&#8203;1241](https://github.com/getsentry/sentry-rust/pull/1241)). ### [`v0.48.4`](https://github.com/getsentry/sentry-rust/blob/HEAD/CHANGELOG.md#0484) [Compare Source](https://github.com/getsentry/sentry-rust/compare/0.48.3...0.48.4) ##### New Features - Added builder-style setters to [`ClientOptions`](https://docs.rs/sentry-core/0.48.3/sentry_core/struct.ClientOptions.html) ([#&#8203;1221](https://github.com/getsentry/sentry-rust/pull/1221)): ```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"); ``` ##### 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]` ([#&#8203;1221](https://github.com/getsentry/sentry-rust/pull/1221)). Reading and assigning individual public fields will remain supported. Please migrate to the builder-style setters introduced in this release. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update Rust crate sentry to v0.48.4
All checks were successful
Build and Test / account (push) Successful in 4m52s
99f6709261
spacebot changed title from Update Rust crate sentry to v0.48.4 to Update Rust crate sentry to v0.48.5 2026-07-14 12:15:54 +02:00
spacebot force-pushed renovate/sentry-rust-monorepo from 99f6709261
All checks were successful
Build and Test / account (push) Successful in 4m52s
to 43f540ae17
All checks were successful
Build and Test / account (push) Successful in 6m59s
2026-07-14 12:15:55 +02:00
Compare
spacebot force-pushed renovate/sentry-rust-monorepo from 43f540ae17
All checks were successful
Build and Test / account (push) Successful in 6m59s
to 9b7d7928a3
All checks were successful
Build and Test / account (push) Successful in 5m14s
2026-07-29 13:16:07 +02:00
Compare
spacebot changed title from Update Rust crate sentry to v0.48.5 to Update Rust crate sentry to 0.49.0 2026-07-29 13:16:09 +02:00
redbinder0526 deleted branch renovate/sentry-rust-monorepo 2026-07-29 15:48:10 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
spacebar/account!71
No description provided.