Skip to content

Releases

0.49.6

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 16 Nov 13:43

Fixes

  • Preserve longer active rate limits when subsequent headers or 429 responses specify shorter delays (#1410).
  • Transport::flush on an Arc-wrapped transport now flushes the inner transport, instead of returning true immediately (#1390).

Deprecations

  • Deprecated the log and uuid features of sentry-core. These features are now no-ops, and will be removed in the next breaking release. Previously, these features enabled the optional log and uuid dependencies, which sentry-core did not use (#1388).
  • Deprecated the serde_json feature of sentry. This feature is now a no-op, and will be removed in the next breaking release. Previously, this feature enabled the optional serde_json dependency, which sentry did not use (#1389).

0.49.5

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 28 Oct 11:44

Documentation

0.49.4

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 28 Oct 09:10

Minimum Supported Rust Version

  • Bump minimum supported Rust version to 1.89.0 (#1365).

Features

Fixes

  • The Actix and Tower integrations now set the already_exists span status on transactions for HTTP 409 Conflict responses, instead of invalid_argument (#1353).

Deprecations

0.49.3

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 21 Sep 10:51

Features

Deprecations

Fixes

  • Corrected disabled tracing behavior: transactions and spans are ignored without generating discarded-data client reports, and locally started traces leave the sampling decision unset rather than marking the trace as unsampled. Incoming sampling decisions are preserved in outgoing sentry-trace headers without enabling local capture. An explicit 0.0 trace sample rate remains distinct from disabled tracing and continues to generate client reports for locally unsampled transactions (#1286).

0.49.2

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 26 Aug 14:42

Fixes

  • Fix a bug that prevented the Curl transport from respecting Sentry rate limits (#1279).

Deprecations

  • Deprecated ClientOptions::enable_logs. The option no longer disables manually captured logs (via the logging APIs); it now only disables automatic log capture by the log-capturing integrations (tracing and log with the logs feature). To stop an integration from sending logs, configure it via its own options (#1299).
  • Deprecated ClientOptions::enable_metrics. The option is now a no-op; metrics are always enabled. To stop sending metrics, stop calling the metrics APIs (#1300).

0.49.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 03 Aug 14:42

Fixes

  • Preserve floating-point fields in tracing logs as numeric attributes (#1278).

0.49.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 29 Jul 10:49

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://[email protected]/0",
        debug: true,
        release: Some("[email protected]".into()),
        ..Default::default()
    };
    
    // After
    let options = sentry::ClientOptions::new()
        .dsn("https://[email protected]/0")
        .debug(true)
        .release("[email protected]");
  • 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

  • Improved trace continuation safety by rejecting incoming traces with incompatible sentry-org_id values when starting transactions, according to strict trace continuation rules (#1218).

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

0.48.5

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 14 Jul 09:41

Fixes

  • Fixed a bug that could cause the SDK to panic and, in some cases, panic while handling the panic, aborting the process (#1241).

0.48.4

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 07 Jul 09:39

New Features

  • Added builder-style setters to ClientOptions (#1221):

    // Before
    let options = sentry::ClientOptions {
        dsn: "https://[email protected]/0",
        debug: true,
        release: Some("[email protected]".into()),
        ..Default::default()
    };
    
    // After
    let options = sentry::ClientOptions::new()
        .dsn("https://[email protected]/0")
        .debug(true)
        .release("[email protected]");

Deprecations

  • Constructing ClientOptions with struct-literal syntax, including ..Default::default() functional update syntax, is deprecated and will stop compiling in the next breaking release, as we will mark ClientOptions as #[non_exhaustive] (#1221). Reading and assigning individual public fields will remain supported. Please migrate to the builder-style setters introduced in this release.

0.48.3

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 25 Jun 07:38

The Sentry Rust SDK now reports data discarded by the SDK to Sentry’s Stats page. The SDK reports approximate counts for drops from transports, queues, rate-limit backoff, sampling, event processors, and before_send* callbacks, including span counts for dropped transactions and byte counts for dropped logs and metrics.

New Features

Deprecations

Fixes

  • Fixed ureq transport handling for HTTP error statuses so 429 rate limits and 413 payload-too-large responses are processed correctly (#1177).

Behavior Changes

  • Custom transport factories that implement TransportFactory::create_transport now receive ClientOptions reconstructed from TransportOptions. The reconstructed options include only transport-relevant fields, such as DSN, user agent, proxy settings, and TLS certificate validation settings. This may affect code that reads non-transport fields in create_transport, but the API remains source-compatible and this change is included in a minor/patch release (#1142).