Repository navigation
Comparing changes
Open a pull request
base repository: getsentry/sentry-rust
base: 0.49.2
head repository: getsentry/sentry-rust
compare: 0.49.3
- 13 commits
- 100 files changed
- 8 contributors
Commits on Aug 26, 2026
-
Configuration menu - View commit details
-
Copy full SHA for fdc087f - Browse repository at this point
Copy the full SHA fdc087fView commit details
Commits on Aug 27, 2026
-
feat(tower): Record http.response.status_code on HTTP transactions (#…
…1253) When `SentryHttpLayer` starts a transaction for an incoming request, successful responses now also set the canonical [`http.response.status_code`](https://getsentry.github.io/sentry-conventions/attributes/http/) attribute on transaction data. The existing `SpanStatus` mapping is unchanged; this adds the numeric status so Sentry can surface HTTP response codes the same way other SDKs do. Only the tower HTTP integration is affected, and only when transactions are enabled. Context: I was trying to debug something and find traces with a particular status code. --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Daniel Szoke <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ea1b0a - Browse repository at this point
Copy the full SHA 5ea1b0aView commit details
Commits on Aug 28, 2026
-
build: Update
randdependency (#1233)Update the `rand` dependency Closes #1234 Closes [RUST-263](https://linear.app/getsentry/issue/RUST-263/bump-rand-dependency) Co-authored-by: PtiBouchon <[email protected]> Co-authored-by: Daniel Szoke <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2dda3f8 - Browse repository at this point
Copy the full SHA 2dda3f8View commit details
Commits on Aug 31, 2026
-
chore(core): Deprecate
is_sampledmethods (#1293)Deprecate the `is_sampled` methods on `Transaction`, `Span`, and `TransactionOrSpan` because these methods no longer faithfully represent the sampling state of these objects now that the SDK can properly represent the tracing-disabled state. This will be even more true after the follow up PR #1286 is merged; that's because that PR changes these struct's internal `sampled` representation to accurately represent the disabled-tracing states. This PR also removes `is_sampled` assertions from the trace continuation tests. These assertions are not needed because the tests' purpose is to check trace continuation, not sampling decision propagation. These `is_sampled` checks should probably never have been added there. We are not adding a replacement for `is_sampled` because a review of code in the `getsentry` org and public GitHub repos did not reveal any usecases of `is_sampled` that could not be replaced with another reasonable existing alternative, e.g. the functions that return the trace propagation headers. In `getsentry`, no usages of these methods could be found outside the SDK itself.
Configuration menu - View commit details
-
Copy full SHA for c0b9a82 - Browse repository at this point
Copy the full SHA c0b9a82View commit details -
chore(core): Implement disabled tracing semantics (#1286)
PR #1227 enabled us to represent disabled tracing differently from a 0.0 sample rate when the SDK is initialized but left the behavior for the two cases largely the same. This change fundamentally alters the semantics around how disabled tracing is handled. Spans/Transactions now keep track of a so-called `TracingState` which keeps track of both whether tracing is enabled and what the sampling decision is. When tracing is enabled, there will always be a sampling decision (including a corresponding sample rate); when tracing is disabled, a sampling decision may be available if the trace was continued from an incoming trace with a sampling decision. Traces started in the SDK when tracing is disabled never have a sampling decision. We then separate the concepts of sampling decision and whether to capture traces. The sampling decision now can correctly represent the case where the decision has been deferred. Span/Transaction tracing headers will always include this sampling decision, regardless of whetehr the SDK is capturing the corresponding the Span/Transaction. For whether to capture traces, we now use a `FinishAction` with three possibilities: `Send` and `Discard` are both used when tracing is enabled and are used for sampled and unsampled traces, respectively, while `Ignore` is used for all traces when tracing is disabled. Both `Discard` and `Ignore` result in spans/transactions not being sent to Sentry, but only `Discard` sends a client report.
Configuration menu - View commit details
-
Copy full SHA for 4427186 - Browse repository at this point
Copy the full SHA 4427186View commit details
Commits on Sep 14, 2026
-
ref(clippy): Enable
impl_trait_in_paramslint (#1319)Enable the [`impl_trait_in_params`](https://rust-lang.github.io/rust-clippy/master/index.html#impl_trait_in_params) lint across the SDK. This lint prevents using `impl Trait` as the type for a parameter in a function which is part of the public API, requiring a named generic instead. Named generics are often more flexible in the future, which is why they are often generally preferable. This change ignores all existing violations, as fixing the violations themselves would be breaking changes. Fixes [#1317](#1317) Fixes [RUST-279](https://linear.app/getsentry/issue/RUST-279)
Configuration menu - View commit details
-
Copy full SHA for 70a1205 - Browse repository at this point
Copy the full SHA 70a1205View commit details
Commits on Sep 15, 2026
-
ref(tests): No integration test crate for shared logic (#1320)
The tracing and opentelemetry integrations' integration tests each had a module with "shared" test logic. However, as this module appeared directly under `tests/` as `tests/shared.rs`, it was also recognized as an integration test crate, even though it contains no tests, and should not be compiled as a separate integration test crate. By moving `tests/shared.rs` to `tests/shared/mod.rs`, we prevent these modules from being recognized as separate test crates, while still allowing them to be used as modules from other integration tests.
Configuration menu - View commit details
-
Copy full SHA for abecd69 - Browse repository at this point
Copy the full SHA abecd69View commit details -
ref(lints): Enforce
missing_docslint globally (#1321)Enforce the `missing_docs` lint globally to require all public API items to be documented. Until now, this lint has been individually enabled in the workspace crates. This change centralizes the lint enforcement in the workspace `Cargo.toml`. Enabling in the workspace `Cargo.toml` also enables the lint for examples and integration tests, which is probably desireable. However, because we largely have not been documenting these so far, the lint triggered in many of these places. So, this change also adds `#![expect]` annotations to disable the lint on examples and tests that have existed before this lint was enabled.
Configuration menu - View commit details
-
Copy full SHA for 715a9ec - Browse repository at this point
Copy the full SHA 715a9ecView commit details
Commits on Sep 17, 2026
-
feat(minidump): Add
sentry-minidumpintegration (#1315)Adds a new `sentry-minidump` crate that captures native crashes as minidumps in a separate process and sends them to Sentry as attachments. Enable it with the `minidump` feature on `sentry`. Linux, macOS and Windows only. The code is ported from the standalone [`sentry-rust-minidump`](https://github.com/timfish/sentry-rust-minidump) crate. ## How it works The integration re-executes the current binary as a crash reporter process. The app process spawns the reporter and connects to it; the reporter attaches a native crash handler and waits. On a crash it writes a minidump, attaches it to a `Fatal` event, and uploads it. Scope does not cross the process boundary on its own. To give the crash event context (user, tags, extra, breadcrumbs), the app sends updates to the reporter explicitly through methods on the integration; each call is forwarded over a socket and applied to the reporter's scope. ## Difference from `sentry-rust-minidump` In `sentry-rust-minidump` the process model is explicit: you call `init(&client)`, which re-executes the binary, and you then have to pass the client in by hand, keep the returned `Handle` alive for the life of the program (or `leak()` it), and know that everything before `init` runs in both processes. Here the process work moves inside `Integration::setup`, which runs inside `Client::with_options` before `sentry::init` binds the client to the hub. That removes most of the ceremony: - In the app process, `setup` spawns the reporter and keeps the handle inside the integration, which the client owns for the life of the process. No `Handle`, no `leak()`, no client to pass in. - In the reporter process, `setup` never returns. It builds its own client from the cloned `ClientOptions`, runs the minidump server loop, and exits. `sentry::init` is the last line of `main` that runs there. Scope sync is still manual, reached via `sentry::with_integration` instead of a method on a `Handle`. `inherit_args` now defaults to `true` since I suspect this will be more useful to most without causing pain for others. The one caveat is inherent to re-executing the binary: code before `sentry::init` still runs in both processes. `is_crash_reporter_process()` stays public so apps can gate on that. Resolves #1316 --------- Co-authored-by: Daniel Szoke <[email protected]> Co-authored-by: Daniel Szoke <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cbed0fa - Browse repository at this point
Copy the full SHA cbed0faView commit details
Commits on Sep 21, 2026
-
feat(core): Make transport channel capacity configurable (#1311)
The transport channel previously had a hardcoded capacity of 30, which can saturate in high-throughput scenarios, causing envelopes to be dropped. Add a `transport_channel_capacity` option to `ClientOptions`, propagated to transports via `TransportOptions`. When unset, each transport uses its own default (currently 30, subject to change). A capacity of `0` is clamped to `1` with a debug message. Closes [#994](#994) Closes [RUST-149](https://linear.app/getsentry/issue/RUST-149/make-transport-channel-capacity-configurable)
Configuration menu - View commit details
-
Copy full SHA for 3b6d992 - Browse repository at this point
Copy the full SHA 3b6d992View commit details -
build(cargo): Bump
rustlsto0.23.45(#1324)Resolves [#1323](#1323) Resolves [RUST-281](https://linear.app/getsentry/issue/RUST-281)
Configuration menu - View commit details
-
Copy full SHA for 5bb564d - Browse repository at this point
Copy the full SHA 5bb564dView commit details -
meta(changelog): Fix the disabled tracing changelog entry (#1325)
Move the entry from 0.49.2 to Unreleased and clarify local sampling behavior without implying full trace propagation support.
Configuration menu - View commit details
-
Copy full SHA for 31a4c96 - Browse repository at this point
Copy the full SHA 31a4c96View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad0b3c1 - Browse repository at this point
Copy the full SHA ad0b3c1View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.49.2...0.49.3