Repository navigation
Releases
0.49.6
Fixes
- Preserve longer active rate limits when subsequent headers or 429 responses specify shorter delays (#1410).
Transport::flushon anArc-wrapped transport now flushes the inner transport, instead of returningtrueimmediately (#1390).
Deprecations
- Deprecated the
loganduuidfeatures ofsentry-core. These features are now no-ops, and will be removed in the next breaking release. Previously, these features enabled the optionalloganduuiddependencies, whichsentry-coredid not use (#1388). - Deprecated the
serde_jsonfeature ofsentry. This feature is now a no-op, and will be removed in the next breaking release. Previously, this feature enabled the optionalserde_jsondependency, whichsentrydid not use (#1389).
0.49.5
Documentation
- Added code examples to the
ErrorLayer::enable_span_attributesandBreadcrumbLayer::enable_span_attributesdocs, which were missing from the 0.49.4 release (#1373).
0.49.4
Minimum Supported Rust Version
- Bump minimum supported Rust version to 1.89.0 (#1365).
Features
- Redesigned
sentry-tracingaround independently selectableSpanLayer,LogLayer,ErrorLayer, andBreadcrumbLayer. Most applications should use the span and log layers (#1342).
Fixes
- The Actix and Tower integrations now set the
already_existsspan status on transactions for HTTP409 Conflictresponses, instead ofinvalid_argument(#1353).
Deprecations
- Deprecated
sentry_tracing::layer()andSentryLayer, along with their associated filtering and mapping types and helpers, in favor of independently selectableSpanLayer,LogLayer,ErrorLayer, andBreadcrumbLayer. A migration guide is available (#1342, #1348).- As this is a larger change, we would love to hear your feedback about the new API if you have trouble migrating. Please open a GitHub issue, and we will help identify a solution.
0.49.3
Features
- Added the
sentry-minidumpintegration, which captures native crashes as minidumps in a separate process and sends them to Sentry as attachments. Enable it with theminidumpfeature onsentry. Linux, macOS and Windows only (#1315). - Added a
transport_channel_capacityoption toClientOptions, making the transport's channel capacity configurable. TheStdTransportThreadOptions::with_channel_capacityandTokioTransportThreadOptions::with_channel_capacitymethods provide the same configuration when constructing transport threads. When unset, each transport uses its own default (currently30), which is subject to change (#1311). - The Tower integration's
SentryHttpLayernow records thehttp.response.status_codeattribute on transactions (#1253).
Deprecations
- Deprecated
Transaction::is_sampled,Span::is_sampled, andTransactionOrSpan::is_sampled. These methods cannot distinguish between an unsampled transaction or span and a deferred sampling decision when tracing is disabled (#1293).
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-traceheaders without enabling local capture. An explicit0.0trace sample rate remains distinct from disabled tracing and continues to generate client reports for locally unsampled transactions (#1286).
0.49.2
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 (tracingandlogwith thelogsfeature). 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
Fixes
- Preserve floating-point fields in tracing logs as numeric attributes (#1278).
0.49.0
Breaking Changes
-
ClientOptionsis 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-opentelemetryintegration to support OpenTelemetry 0.32. Users of the integration must update their OpenTelemetry dependencies from 0.29 to 0.32 (#1262). -
The
logsandmetricsfeatures are now enabled by default in thesentrycrate. 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_ratefield. UseClientOptions::event_sampling_strategyto inspect the configured event sampling strategy, and use the existingClientOptions::sample_rate(...)builder setter to configure fixed-rate sampling. -
Removed the public
ClientOptions::sample_ratefield. UseClientOptions::event_sampling_strategyto inspect the configured event sampling strategy, and use the existingClientOptions::sample_rate(...)builder setter to configure fixed-rate sampling (#1228). -
Removed the public
ClientOptions::traces_sample_rateandClientOptions::traces_samplerfields. UseClientOptions::traces_sampling_strategyto inspect the configured traces sampling strategy, and use the existingClientOptions::traces_sample_rate(...)andClientOptions::traces_sampler(...)builder setters to configure fixed-rate and callback-based sampling (#1227). -
EnvelopeItemnow storesEventandTransactionpayloads inBoxvalues. Code that constructs or pattern-matches these variants must account for the additional indirection (#1255). -
The
sentry_log::RecordMappingenum'sEventnow stores the event in aBox(#1269). -
sentry_slog::RecordMappingis now#[non_exhaustive]and theEventvariant now stores a boxedEvent<'static>(#1270) -
The
sentry_tracing::EventMappingenum'sEventvariant is now stored in aBox(#1272)
New Features
- Added
TracePropagationContextas the preferred type for Sentry trace propagation metadata. The existingSentryTracetype remains available for backwards compatibility (#1212). - Added
Dsn::org_id, which parses the Sentry SaaS organization ID from DSN hosts such aso123.ingest.sentry.io(#1202). - Added
ClientOptions::org_idandClientOptions::strict_trace_continuation(#1203). These options control how traces are continued and can help prevent traces from third-party services, which happen to be instrumented with Sentry, from being continued.
Improvements
- Improved trace continuation safety by rejecting incoming traces with incompatible
sentry-org_idvalues 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).
EnvelopeErroris now#[non_exhaustive]to allow adding new error variants without a breaking change (#1254).
0.48.5
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
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
ClientOptionswith struct-literal syntax, including..Default::default()functional update syntax, is deprecated and will stop compiling in the next breaking release, as we will markClientOptionsas#[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
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
- Added
EnvelopeFilterandEnvelopeFilterCallbacks, which let callers observe envelope items removed byEnvelope::filter, including attachments removed after their event or transaction is filtered out. ExistingEnvelope::filterclosure callers continue to work, although some closures may require an explicit item type annotation (#1182). - Added the
LossSourcetrait, which provides the client report data categories and quantities to report when supported Sentry data is dropped (#1170). - Added
TransportFactory::create_transport_with_options, which constructs transports fromTransportOptionsinstead of fullClientOptions(#1142). - Added transport-specific options types and
with_optionsconstructors for built-in HTTP transports, includingReqwestHttpTransportOptions,CurlHttpTransportOptions,UreqHttpTransportOptions, andEmbeddedSVCHttpTransportOptions(#1142). - Added transport worker options types and deprecated the legacy constructors for built-in background transport workers, including
StdTransportThreadOptionsandTokioTransportThreadOptions(#1142). - Added client report protocol types in
sentry-types, includingClientReport,client_report::Item,client_report::Category, andclient_report::Reason, plus support for serializingclient_reportenvelope items (#1144). - Added a client report
Recordertype, which modernTransportFactoryimplementations receive viaTransportOptions. Transports can use this recorder to record discarded Sentry data; the SDK aggregates these reported losses and automatically sends them in a future envelope (#1158).
Deprecations
- Deprecated
Hub::with. UseHub::currentinstead (#1126).
Fixes
- Fixed
ureqtransport handling for HTTP error statuses so429rate limits and413payload-too-large responses are processed correctly (#1177).
Behavior Changes
- Custom transport factories that implement
TransportFactory::create_transportnow receiveClientOptionsreconstructed fromTransportOptions. 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 increate_transport, but the API remains source-compatible and this change is included in a minor/patch release (#1142).