Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.49.2
Choose a base ref
...
head repository: getsentry/sentry-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.49.3
Choose a head ref
  • 13 commits
  • 100 files changed
  • 8 contributors

Commits on Aug 26, 2026

  1. Configuration menu
    Copy the full SHA
    fdc087f View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2026

  1. 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]>
    3 people authored Aug 27, 2026
    Configuration menu
    Copy the full SHA
    5ea1b0a View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2026

  1. build: Update rand dependency (#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]>
    3 people authored Aug 28, 2026
    Configuration menu
    Copy the full SHA
    2dda3f8 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2026

  1. chore(core): Deprecate is_sampled methods (#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.
    szokeasaurusrex authored Aug 31, 2026
    Configuration menu
    Copy the full SHA
    c0b9a82 View commit details
    Browse the repository at this point in the history
  2. 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.
    szokeasaurusrex authored Aug 31, 2026
    Configuration menu
    Copy the full SHA
    4427186 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2026

  1. ref(clippy): Enable impl_trait_in_params lint (#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)
    szokeasaurusrex authored Sep 14, 2026
    Configuration menu
    Copy the full SHA
    70a1205 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2026

  1. 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.
    szokeasaurusrex authored Sep 15, 2026
    Configuration menu
    Copy the full SHA
    abecd69 View commit details
    Browse the repository at this point in the history
  2. ref(lints): Enforce missing_docs lint 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.
    szokeasaurusrex authored Sep 15, 2026
    Configuration menu
    Copy the full SHA
    715a9ec View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2026

  1. feat(minidump): Add sentry-minidump integration (#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]>
    3 people authored Sep 17, 2026
    Configuration menu
    Copy the full SHA
    cbed0fa View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2026

  1. 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)
    szokeasaurusrex authored Sep 21, 2026
    Configuration menu
    Copy the full SHA
    3b6d992 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5bb564d View commit details
    Browse the repository at this point in the history
  3. 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.
    szokeasaurusrex authored Sep 21, 2026
    Configuration menu
    Copy the full SHA
    31a4c96 View commit details
    Browse the repository at this point in the history
  4. release: 0.49.3

    szokeasaurusrex committed Sep 21, 2026
    Configuration menu
    Copy the full SHA
    ad0b3c1 View commit details
    Browse the repository at this point in the history
Loading