chore(deps): update sentry-rust monorepo to 0.48.0 #1724

Merged
ginger merged 1 commit from renovate/sentry-rust-monorepo into main 2026-05-03 14:41:06 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
sentry (source) workspace.dependencies minor 0.47.00.48.0
sentry-tower (source) workspace.dependencies minor 0.47.00.48.0
sentry-tracing (source) workspace.dependencies minor 0.47.00.48.0

Release Notes

getsentry/sentry-rust (sentry)

v0.48.0

Compare Source

Breaking Changes
New Features

📊📈💯 The Sentry-Rust SDK now supports emitting Sentry Metrics (#​1073)!

To get started, you will need to add the metrics feature flag when compiling the sentry crate. You will also need to enable metrics when initializing the SDK, like so:

use sentry::ClientOptions;

let _guard = sentry::init((
    "(your DSN here)",
    ClientOptions {
        enable_metrics: true,
        // ... other options ...
        ..Default::default()
    },
));

You can then capture metrics as follows:

use sentry::metrics;
use sentry::types::protocol::latest::Unit;

// We support counter, gauge, and distribution metrics.
metrics::counter("example.counter", 1).capture();
metrics::gauge("connections", 20).capture();
metrics::distribution("response.time", 123.4)
    .unit(Unit::Millisecond) // units can also be set on gauges
    .attribute("http.status", 200) // attributes can be set on all metric types
    .capture();
Fixes
  • Fixed several feature additivity SemVer violations, where enabling a feature flag could have introduced breaking changes. All known violations are fixed now, so simply enabling an additional feature flag in any Sentry SDK crate should no longer cause any public API breakages. Fixing these issues required us to break the public API in some places; those breakages are detailed above.

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 these updates 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)) | workspace.dependencies | minor | `0.47.0` → `0.48.0` | | [sentry-tower](https://sentry.io/welcome/) ([source](https://github.com/getsentry/sentry-rust)) | workspace.dependencies | minor | `0.47.0` → `0.48.0` | | [sentry-tracing](https://sentry.io/welcome/) ([source](https://github.com/getsentry/sentry-rust)) | workspace.dependencies | minor | `0.47.0` → `0.48.0` | --- ### Release Notes <details> <summary>getsentry/sentry-rust (sentry)</summary> ### [`v0.48.0`](https://github.com/getsentry/sentry-rust/blob/HEAD/CHANGELOG.md#0480) [Compare Source](https://github.com/getsentry/sentry-rust/compare/0.47.0...0.48.0) ##### Breaking Changes - Added the following metrics-related fields to the [`ClientOptions` struct in `sentry-core`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html). Both fields are no-ops, unless the `metrics` feature flag is enabled: - [`enable_metrics`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics), used to enable sending metrics to Sentry ([#&#8203;1073](https://github.com/getsentry/sentry-rust/pull/1073)). - [`before_send_metric`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_metric), used to define a callback for filtering/pre-processing metrics before sending to Sentry ([#&#8203;1064](https://github.com/getsentry/sentry-rust/pull/1064)). - There are several breakages related to the [SemVer feature additivity bug fixes](#semver-additivity-bug-fixes-2026-04): - [`sentry_core::ClientOptions`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html) fields [`before_send_log`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_log), [`enable_logs`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_logs), [`auto_session_tracking`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.auto_session_tracking), and [`session_mode`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.session_mode) are no longer gated behind the `logs` and `release-health` feature flags ([#&#8203;1091](https://github.com/getsentry/sentry-rust/pull/1091)). Code that constructs `ClientOptions` with a full struct literal (without `..Default::default()`), or which exhaustively matches against it, must now include all four fields regardless of enabled features. - [`sentry_core::Scope`](https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html) can no longer be publicly constructed or exhaustively matched against, even when the `client` feature is disabled ([#&#8203;1094](https://github.com/getsentry/sentry-rust/pull/1094)). Previously, both of these were possible when `client` was disabled. - [`sentry_core::Scope::add_event_processor`](https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#method.add_event_processor) now requires passed closures to be `RefUnwindSafe` ([#&#8203;1093](https://github.com/getsentry/sentry-rust/pull/1093)). Thanks to this change, [`sentry_core::Scope`](https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html) is now [`UnwindSafe`](https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#impl-UnwindSafe-for-Scope) regardless of feature flag configuration; previously, `Scope` was only `UnwindSafe` when the `client` feature was disabled. - [`sentry_tracing::EventMapping`](https://docs.rs/sentry-tracing/latest/sentry_tracing/enum.EventMapping.html) is now `#[non_exhaustive]` ([#&#8203;1097](https://github.com/getsentry/sentry-rust/pull/1097)). - [`sentry_log::RecordMapping`](https://docs.rs/sentry-log/latest/sentry_log/enum.RecordMapping.html) is now `#[non_exhaustive]` ([#&#8203;1098](https://github.com/getsentry/sentry-rust/pull/1098)). ##### New Features 📊📈💯 The Sentry-Rust SDK now supports emitting [Sentry Metrics](https://docs.sentry.io/product/explore/metrics/) ([#&#8203;1073](https://github.com/getsentry/sentry-rust/pull/1073))! To get started, you will need to add the `metrics` feature flag when compiling the `sentry` crate. You will also need to enable metrics when initializing the SDK, like so: ```rust use sentry::ClientOptions; let _guard = sentry::init(( "(your DSN here)", ClientOptions { enable_metrics: true, // ... other options ... ..Default::default() }, )); ``` You can then capture metrics as follows: ```rust use sentry::metrics; use sentry::types::protocol::latest::Unit; // We support counter, gauge, and distribution metrics. metrics::counter("example.counter", 1).capture(); metrics::gauge("connections", 20).capture(); metrics::distribution("response.time", 123.4) .unit(Unit::Millisecond) // units can also be set on gauges .attribute("http.status", 200) // attributes can be set on all metric types .capture(); ``` ##### Fixes - <a name="semver-additivity-bug-fixes-2026-04"></a> Fixed several [feature additivity SemVer violations](https://doc.rust-lang.org/cargo/reference/features.html#semver-compatibility), where enabling a feature flag could have introduced breaking changes. All known violations are fixed now, so simply enabling an additional feature flag in any Sentry SDK crate should no longer cause any public API breakages. Fixing these issues required us to break the public API in some places; those breakages are detailed above. </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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJEZXBlbmRlbmNpZXMiLCJEZXBlbmRlbmNpZXMvUmVub3ZhdGUiXX0=-->
chore(deps): update sentry-rust monorepo to 0.48.0
All checks were successful
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 31s
Checks / Prek / Check changed files (pull_request) Successful in 33s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m15s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m20s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m58s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 11m36s
850ab159ca
ginger merged commit 81c5c6b2bc into main 2026-05-03 14:41:06 +00:00
ginger deleted branch renovate/sentry-rust-monorepo 2026-05-03 14:41:06 +00: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
continuwuation/continuwuity!1724
No description provided.