Commit 9d1219e
build(deps): bump sentry-tracing from 0.46.1 to 0.48.2 (MaterializeInc#33225)
Bumps [sentry-tracing](https://github.com/getsentry/sentry-rust) from
0.46.1 to 0.48.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-rust/releases">sentry-tracing's
releases</a>.</em></p>
<blockquote>
<h2>0.48.2</h2>
<h3>New Features</h3>
<ul>
<li>Added <code>rustls-no-provider</code> feature flag in the
<code>sentry</code> crate to allow using the <code>rustls</code>
transport with a different crypto provider (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1103">#1103</a>).</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Serialize attachment envelope headers as JSON to correctly encode
header values (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1109">#1109</a>).</li>
<li>Use checked arithmetic to handle possible overflows (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1119">#1119</a>,
<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1121">#1121</a>,
<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1122">#1122</a>).</li>
</ul>
<h2>0.48.1</h2>
<h3>Fixes</h3>
<ul>
<li>Changed <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics"><code>ClientOptions::enable_metrics</code></a>
to default to <code>true</code>, aligning metrics behavior with other
Sentry SDKs (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1106">#1106</a>).
Metric capture APIs still require the <code>metrics</code> feature flag
at compile time.</li>
</ul>
<h2>0.48.0</h2>
<h3>Breaking Changes</h3>
<ul>
<li>Added the following metrics-related fields to the <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html"><code>ClientOptions</code>
struct in <code>sentry-core</code></a>. Both fields are no-ops, unless
the <code>metrics</code> feature flag is enabled:
<ul>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics"><code>enable_metrics</code></a>,
used to enable sending metrics to Sentry (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1073">#1073</a>).</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_metric"><code>before_send_metric</code></a>,
used to define a callback for filtering/pre-processing metrics before
sending to Sentry (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1064">#1064</a>).</li>
</ul>
</li>
<li>There are several breakages related to the <a
href="https://github.com/getsentry/sentry-rust/blob/HEAD/#semver-additivity-bug-fixes-2026-04">SemVer
feature additivity bug fixes</a>:
<ul>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html"><code>sentry_core::ClientOptions</code></a>
fields <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_log"><code>before_send_log</code></a>,
<a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_logs"><code>enable_logs</code></a>,
<a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.auto_session_tracking"><code>auto_session_tracking</code></a>,
and <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.session_mode"><code>session_mode</code></a>
are no longer gated behind the <code>logs</code> and
<code>release-health</code> feature flags (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1091">#1091</a>).
Code that constructs <code>ClientOptions</code> with a full struct
literal (without <code>..Default::default()</code>), or which
exhaustively matches against it, must now include all four fields
regardless of enabled features.</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html"><code>sentry_core::Scope</code></a>
can no longer be publicly constructed or exhaustively matched against,
even when the <code>client</code> feature is disabled (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1094">#1094</a>).
Previously, both of these were possible when <code>client</code> was
disabled.</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#method.add_event_processor"><code>sentry_core::Scope::add_event_processor</code></a>
now requires passed closures to be <code>RefUnwindSafe</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1093">#1093</a>).
Thanks to this change, <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html"><code>sentry_core::Scope</code></a>
is now <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#impl-UnwindSafe-for-Scope"><code>UnwindSafe</code></a>
regardless of feature flag configuration; previously, <code>Scope</code>
was only <code>UnwindSafe</code> when the <code>client</code> feature
was disabled.</li>
<li><a
href="https://docs.rs/sentry-tracing/latest/sentry_tracing/enum.EventMapping.html"><code>sentry_tracing::EventMapping</code></a>
is now <code>#[non_exhaustive]</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1097">#1097</a>).</li>
<li><a
href="https://docs.rs/sentry-log/latest/sentry_log/enum.RecordMapping.html"><code>sentry_log::RecordMapping</code></a>
is now <code>#[non_exhaustive]</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1098">#1098</a>).</li>
</ul>
</li>
</ul>
<h3>New Features</h3>
<p>📊📈💯 The Sentry-Rust SDK now supports emitting <a
href="https://docs.sentry.io/product/explore/metrics/">Sentry
Metrics</a> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1073">#1073</a>)!</p>
<p>To get started, you will need to add the <code>metrics</code> feature
flag when compiling the <code>sentry</code> crate. You will also need to
enable metrics when initializing the SDK, like so:</p>
<pre lang="rust"><code>use sentry::ClientOptions;
<p>let _guard = sentry::init((
"(your DSN here)",
ClientOptions {
enable_metrics: true,
// ... other options ...
..Default::default()
},
));
</code></pre></p>
<p>You can then capture metrics as follows:</p>
<pre lang="rust"><code></tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-rust/blob/master/CHANGELOG.md">sentry-tracing's
changelog</a>.</em></p>
<blockquote>
<h2>0.48.2</h2>
<h3>New Features</h3>
<ul>
<li>Added <code>rustls-no-provider</code> feature flag in the
<code>sentry</code> crate to allow using the <code>rustls</code>
transport with a different crypto provider (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1103">#1103</a>).</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Serialize attachment envelope headers as JSON to correctly encode
header values (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1109">#1109</a>).</li>
<li>Use checked arithmetic to handle possible overflows (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1119">#1119</a>,
<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1121">#1121</a>,
<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1122">#1122</a>).</li>
</ul>
<h2>0.48.1</h2>
<h3>Fixes</h3>
<ul>
<li>Changed <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics"><code>ClientOptions::enable_metrics</code></a>
to default to <code>true</code>, aligning metrics behavior with other
Sentry SDKs (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1106">#1106</a>).
Metric capture APIs still require the <code>metrics</code> feature flag
at compile time.</li>
</ul>
<h2>0.48.0</h2>
<h3>Breaking Changes</h3>
<ul>
<li>Added the following metrics-related fields to the <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html"><code>ClientOptions</code>
struct in <code>sentry-core</code></a>. Both fields are no-ops, unless
the <code>metrics</code> feature flag is enabled:
<ul>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics"><code>enable_metrics</code></a>,
used to enable sending metrics to Sentry (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1073">#1073</a>).</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_metric"><code>before_send_metric</code></a>,
used to define a callback for filtering/pre-processing metrics before
sending to Sentry (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1064">#1064</a>).</li>
</ul>
</li>
<li>There are several breakages related to the <a
href="https://github.com/getsentry/sentry-rust/blob/master/#semver-additivity-bug-fixes-2026-04">SemVer
feature additivity bug fixes</a>:
<ul>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html"><code>sentry_core::ClientOptions</code></a>
fields <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_log"><code>before_send_log</code></a>,
<a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_logs"><code>enable_logs</code></a>,
<a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.auto_session_tracking"><code>auto_session_tracking</code></a>,
and <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.session_mode"><code>session_mode</code></a>
are no longer gated behind the <code>logs</code> and
<code>release-health</code> feature flags (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1091">#1091</a>).
Code that constructs <code>ClientOptions</code> with a full struct
literal (without <code>..Default::default()</code>), or which
exhaustively matches against it, must now include all four fields
regardless of enabled features.</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html"><code>sentry_core::Scope</code></a>
can no longer be publicly constructed or exhaustively matched against,
even when the <code>client</code> feature is disabled (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1094">#1094</a>).
Previously, both of these were possible when <code>client</code> was
disabled.</li>
<li><a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#method.add_event_processor"><code>sentry_core::Scope::add_event_processor</code></a>
now requires passed closures to be <code>RefUnwindSafe</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1093">#1093</a>).
Thanks to this change, <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html"><code>sentry_core::Scope</code></a>
is now <a
href="https://docs.rs/sentry-core/latest/sentry_core/struct.Scope.html#impl-UnwindSafe-for-Scope"><code>UnwindSafe</code></a>
regardless of feature flag configuration; previously, <code>Scope</code>
was only <code>UnwindSafe</code> when the <code>client</code> feature
was disabled.</li>
<li><a
href="https://docs.rs/sentry-tracing/latest/sentry_tracing/enum.EventMapping.html"><code>sentry_tracing::EventMapping</code></a>
is now <code>#[non_exhaustive]</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1097">#1097</a>).</li>
<li><a
href="https://docs.rs/sentry-log/latest/sentry_log/enum.RecordMapping.html"><code>sentry_log::RecordMapping</code></a>
is now <code>#[non_exhaustive]</code> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1098">#1098</a>).</li>
</ul>
</li>
</ul>
<h3>New Features</h3>
<p>📊📈💯 The Sentry-Rust SDK now supports emitting <a
href="https://docs.sentry.io/product/explore/metrics/">Sentry
Metrics</a> (<a
href="https://redirect.github.com/getsentry/sentry-rust/pull/1073">#1073</a>)!</p>
<p>To get started, you will need to add the <code>metrics</code> feature
flag when compiling the <code>sentry</code> crate. You will also need to
enable metrics when initializing the SDK, like so:</p>
<pre lang="rust"><code>use sentry::ClientOptions;
<p>let _guard = sentry::init((
"(your DSN here)",
ClientOptions {
enable_metrics: true,
// ... other options ...
..Default::default()
},
));
</code></pre></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/8d8e8fc1b2dde510eaf61bcaed80e5076d5375f5"><code>8d8e8fc</code></a>
meta(changelog): Update CHANGELOG for version 0.48.2</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/38995065dbb009e80c51a9e2f9dade802e4667f8"><code>3899506</code></a>
release: 0.48.2</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/a9fc8af3512ad456a8742c52bb7b102e59fd4dca"><code>a9fc8af</code></a>
fix(types): Use checked arithmetic in envelope parsing (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1122">#1122</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/a6ce8b0813bc7108b0dec6c9491ac5ce778877fd"><code>a6ce8b0</code></a>
feat: introduce <code>rustls-no-provider</code> feature flag (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1103">#1103</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/df882754c3893fa5863c671cbab8dc77120485f6"><code>df88275</code></a>
fix(ratelimit): Fix <code>clippy::arithmetic_side_effects</code> lint
(<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1121">#1121</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/d65272bc174e4d51c38ff54bcc29dfdee751bc1d"><code>d65272b</code></a>
fix: Enable <code>clippy::arithmetic_side_effects</code> lint (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1119">#1119</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/f801a2c072974483248eb46a4760409e9b790b27"><code>f801a2c</code></a>
build(deps): bump openssl from 0.10.78 to 0.10.79 (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1120">#1120</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/5dc48f361ed21058f09ec6d172de7588e88de384"><code>5dc48f3</code></a>
chore(meta): Centralize workspace lint config (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1114">#1114</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/09aceecbfcd3f579ff7ec436dd8f700a591f0f5e"><code>09aceec</code></a>
ref(sentry-panic): <code>PanicInfo</code> → <code>PanicHookInfo</code>
(<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1074">#1074</a>)</li>
<li><a
href="https://github.com/getsentry/sentry-rust/commit/2bebbd44e47fc9056cc04cf5f755cd5b6fc9dfd7"><code>2bebbd4</code></a>
fix(types): Serialize attachment headers as JSON (<a
href="https://redirect.github.com/getsentry/sentry-rust/issues/1109">#1109</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/getsentry/sentry-rust/compare/0.46.1...0.48.2">compare
view</a></li>
</ul>
</details>
<br />
> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roberto Jimeno <roberto.jimeno@materialize.com>1 parent 5209db5 commit 9d1219e
3 files changed
Lines changed: 97 additions & 53 deletions
0 commit comments