Update Rust crate sentry to 0.49.0 #61

Merged
redbinder0526 merged 2 commits from renovate/sentry-0.x into v0 2026-08-08 07:48:21 +02:00
Owner

This PR contains the following updates:

Package Type Update Change
sentry (source) dependencies minor 0.48.40.49.0

Release Notes

getsentry/sentry-rust (sentry)

v0.49.1

Compare Source

Fixes
  • Preserve floating-point fields in tracing logs as numeric attributes (#​1278).
  • Fix a bug that prevented the Curl transport from respecting Sentry rate limits (#​1279).

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).

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.4` → `0.49.0` | --- ### Release Notes <details> <summary>getsentry/sentry-rust (sentry)</summary> ### [`v0.49.1`](https://github.com/getsentry/sentry-rust/blob/HEAD/CHANGELOG.md#0491) [Compare Source](https://github.com/getsentry/sentry-rust/compare/0.49.0...0.49.1) ##### Fixes - Preserve floating-point fields in tracing logs as numeric attributes ([#&#8203;1278](https://github.com/getsentry/sentry-rust/pull/1278)). - Fix a bug that prevented the Curl transport from respecting Sentry rate limits ([#&#8203;1279](https://github.com/getsentry/sentry-rust/pull/1279)). ### [`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)). </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:eyJjcmVhdGVkSW5WZXIiOiI0My4yODguMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4OC4wIiwidGFyZ2V0QnJhbmNoIjoidjAiLCJsYWJlbHMiOltdfQ==-->
Update Rust crate sentry to 0.49.0
Some checks failed
Build and Test / build-editions (fast-racing-neo) (push) Failing after 4m25s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 4m54s
Build and Test / build-editions (terraria) (push) Has been cancelled
Build and Test / build-editions (wii-u-chat) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Has been cancelled
Build and Test / build-editions (splatoon) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Has been cancelled
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Has been cancelled
Build and Test / build-editions (mario-tennis) (push) Has been cancelled
Build and Test / build-editions (minecraft-wiiu) (push) Has been cancelled
Build and Test / build-editions (sonic-transformed) (push) Has been cancelled
Build and Test / build-editions (splatoon-testfire) (push) Has been cancelled
f12e60709c
fix sentry integration
All checks were successful
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 8m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 8m41s
Build and Test / build-editions (fast-racing-neo) (push) Successful in 8m46s
Build and Test / build-editions (mario-tennis) (push) Successful in 8m49s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 8m50s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 9m0s
Build and Test / build-editions (splatoon) (push) Successful in 7m6s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 9m12s
Build and Test / build-editions (terraria) (push) Successful in 6m0s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 6m57s
Build and Test / build-editions (wii-u-chat) (push) Successful in 4m51s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 9m25s
52893fb728
redbinder0526 deleted branch renovate/sentry-0.x 2026-08-08 07:48:22 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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/rust-nex!61
No description provided.