fix(deps): update sentry-rust to 0.48.0#278
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
January 8, 2025 13:21
fc11361 to
cd0dba2
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
April 1, 2025 14:30
cd0dba2 to
1998ef0
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
April 2, 2025 08:03
1998ef0 to
0e2e632
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
May 9, 2025 16:07
0e2e632 to
ea88003
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
June 10, 2025 12:32
ea88003 to
3bf1e30
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
June 17, 2025 12:31
3bf1e30 to
5530fe1
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
June 23, 2025 14:32
5530fe1 to
6f364e5
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
July 29, 2025 12:45
6f364e5 to
cba6f9e
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
August 10, 2025 14:22
cba6f9e to
6346057
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
September 24, 2025 10:07
6346057 to
2c75717
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
September 25, 2025 19:55
2c75717 to
8946825
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
October 7, 2025 10:06
8946825 to
818d22f
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
October 8, 2025 13:13
818d22f to
5cea7d6
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
November 24, 2025 17:41
5cea7d6 to
730a72d
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
December 10, 2025 15:52
730a72d to
0c22452
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
2 times, most recently
from
January 7, 2026 09:52
5301416 to
cde2b6f
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
March 1, 2026 19:23
cde2b6f to
62d4c02
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
March 10, 2026 17:24
62d4c02 to
5a26d9d
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
March 13, 2026 18:40
5a26d9d to
a09d91e
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
2 times, most recently
from
May 4, 2026 15:47
cdc6573 to
3be0f4c
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
May 11, 2026 09:49
3be0f4c to
b1a4983
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
May 18, 2026 18:54
b1a4983 to
3afda69
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
June 25, 2026 10:12
3afda69 to
a78b306
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
July 7, 2026 10:01
a78b306 to
ae004e4
Compare
renovate
Bot
force-pushed
the
renovate/sentry
branch
from
July 14, 2026 09:50
ae004e4 to
efdfcc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.34.0→0.48.00.34.0→0.48.0Release Notes
getsentry/sentry-rust (sentry)
v0.48.5Compare Source
Fixes
v0.48.4Compare Source
New Features
Added builder-style setters to
ClientOptions(#1221):Deprecations
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.v0.48.3Compare Source
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
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).LossSourcetrait, which provides the client report data categories and quantities to report when supported Sentry data is dropped (#1170).TransportFactory::create_transport_with_options, which constructs transports fromTransportOptionsinstead of fullClientOptions(#1142).with_optionsconstructors for built-in HTTP transports, includingReqwestHttpTransportOptions,CurlHttpTransportOptions,UreqHttpTransportOptions, andEmbeddedSVCHttpTransportOptions(#1142).StdTransportThreadOptionsandTokioTransportThreadOptions(#1142).sentry-types, includingClientReport,client_report::Item,client_report::Category, andclient_report::Reason, plus support for serializingclient_reportenvelope items (#1144).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
Hub::with. UseHub::currentinstead (#1126).Fixes
ureqtransport handling for HTTP error statuses so429rate limits and413payload-too-large responses are processed correctly (#1177).Behavior Changes
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).v0.48.2Compare Source
New Features
rustls-no-providerfeature flag in thesentrycrate to allow using therustlstransport with a different crypto provider (#1103).Fixes
v0.48.1Compare Source
Fixes
ClientOptions::enable_metricsto default totrue, aligning metrics behavior with other Sentry SDKs (#1106). Metric capture APIs still require themetricsfeature flag at compile time.v0.48.0Compare Source
Breaking Changes
ClientOptionsstruct insentry-core. Both fields are no-ops, unless themetricsfeature flag is enabled:enable_metrics, used to enable sending metrics to Sentry (#1073).before_send_metric, used to define a callback for filtering/pre-processing metrics before sending to Sentry (#1064).sentry_core::ClientOptionsfieldsbefore_send_log,enable_logs,auto_session_tracking, andsession_modeare no longer gated behind thelogsandrelease-healthfeature flags (#1091). Code that constructsClientOptionswith a full struct literal (without..Default::default()), or which exhaustively matches against it, must now include all four fields regardless of enabled features.sentry_core::Scopecan no longer be publicly constructed or exhaustively matched against, even when theclientfeature is disabled (#1094). Previously, both of these were possible whenclientwas disabled.sentry_core::Scope::add_event_processornow requires passed closures to beRefUnwindSafe(#1093). Thanks to this change,sentry_core::Scopeis nowUnwindSaferegardless of feature flag configuration; previously,Scopewas onlyUnwindSafewhen theclientfeature was disabled.sentry_tracing::EventMappingis now#[non_exhaustive](#1097).sentry_log::RecordMappingis now#[non_exhaustive](#1098).New Features
📊📈💯 The Sentry-Rust SDK now supports emitting Sentry Metrics (#1073)!
To get started, you will need to add the
metricsfeature flag when compiling thesentrycrate. You will also need to enable metrics when initializing the SDK, like so:You can then capture metrics as follows:
Fixes
v0.47.0Compare Source
Breaking Changes
RequestHttpTransport::with_clientmethod.sentry_core::HubSwitchGuardis now!Send, preventing it from being moved across threads (#957).New Features
Envelope::into_itemsmethod, which returns an iterator over ownedEnvelopeItems in theEnvelope(#983).Fixes
HubSwitchGuardcould be dropped on wrong thread (#957).Hubevery time a span is entered. This prevents data from leaking across spans (#957).v0.46.2Compare Source
New Features
Minimum Supported Rust Version
v0.46.1Compare Source
Improvements
Dependencies
v0.46.0Compare Source
Breaking changes
ClientOptionsstruct'strim_backtracesandextra_border_framesfields (#925).Improvements
Fixes
v0.45.0Compare Source
Breaking changes
AttachmentTypethat holds an arbitrary String. (#916)v0.44.0Compare Source
Breaking changes
sentry::integrations::log::LogFilterhas been changed to abitflagsstruct.logrecord to multiple items in Sentry by combining multiple log filters in the filter, e.g.log::Level::ERROR => LogFilter::Event | LogFilter::Log.mapperinstead, it's possible to return aVec<sentry::integrations::log::RecordMapping>to map alogrecord to multiple items in Sentry.Behavioral changes
logsfeature flag is enabled, the default Sentryloglogger now sends logs for all events at or above INFO.sentry::ClientOptions::enable_logstotrue.logfeature flag to thesentrydependency to opt-in to sending logs.logfeature flag is enabled, thetracingandlogintegrations will send structured logs to Sentry for all logs/events at or above INFO level by default.v0.43.0Compare Source
Breaking changes
tracingintegration now uses the tracing span name as the Sentry span name by default.tracingspan target (<module>::<function>when using thetracing::instrumentmacro).tracingintegration now uses<span target>::<span name>as the default Sentry span op (i.e.<module>::<function>when usingtracing::instrument).tracingspan name.code.module.name,code.file.pathandcode.line.numberstandardized in OTEL to surface the respective information, in contrast with the previously senttracing.module_path,tracing.fileandtracing.line.capture_server_errorsoption (enabled by default), capturing errors returned by middleware only if they are server errors (HTTP status code 5xx).TraceContextnow has an additional fieldorigin, used to report which integration created a transaction.Behavioral changes
logsfeature flag is enabled, andenable_logs: trueis set on your client options, the default Sentrytracinglayer now sends logs for all events at or above INFO.Features
ref(tracing): rework tracing to Sentry span name/op conversion (#887) by @lcian
sentry.op: override the Sentry span op.sentry.name: override the Sentry span name.sentry.trace: given a string matching a validsentry-traceheader (sent automatically by client SDKs), continues the distributed trace instead of starting a new one. If the value is not a validsentry-traceheader or a trace is already started, this value is ignored.sentry.opandsentry.namecan also be applied retroactively by declaring fields with valuetracing::field::Emptyand then recorded usingtracing::Span::record.sentry.tracing.target: corresponds to thetracingspan'smetadata.target()code.module.name,code.file.path,code.line.numberfeat(core): add Response context (#874) by @lcian
Responsecontext can now be attached to events, to include information about HTTP responses such as headers, cookies and status code.Fixes
sentry-paniccrate now builds successfully when used as a standalone dependency.v0.42.0Compare Source
Features
logrecord using thekvfeature are now recorded as attributes on the log sent to Sentry.Behavioral changes
Requestis created manually by the user, then these fields are not filtered out.Fixes
debugoption with behavior since PR #820 (#860) by @AlexTMjugadorv0.41.0Compare Source
Breaking changes
EventFilterhas been changed to abitflagsstruct.tracingevent to multiple items in Sentry by combining multiple event filters in theevent_filter, e.g.tracing::Level::ERROR => EventFilter::Event | EventFilter::Log.EventMapping::Combinedto map atracingevent to multiple items in Sentry.ctxin the signatures ofevent_from_event,breadcrumb_from_eventandlog_from_eventhas been changed to takeimpl Into<Option<&'context Context<'context, S>>>to avoid cloning theContextwhen mapping to multiple items.Features
Fixes
i64::MAX(#846) by @lcianDependencies
anyhowand disable itsbacktracefeature (#632) by @LunaBorowskav0.40.0Compare Source
Breaking changes
send_default_pii(#843) by @lciansend_default_pii. Therefore, that parameter was removed fromsentry_core::Scope::apply_to_log.Features
tracingevents as Sentry structured logs, enable thelogsfeature of thesentrycrate.enable_logs: truein your client options.logrecords as Sentry structured logs, enable thelogsfeature of thesentrycrate.enable_logs: truein your client options.os.nameandos.versionare now being attached to logs as default attributes.Fixes
sentry.environmentdefault attribute (#837) by @lcianBehavioral changes
dataunder their original field name.errors.Dependencies
ureqto 3.x (#835) by @algestenv0.39.0Compare Source
Features
Support for Sentry structured logs has been added to the SDK.
To set up logs, enable the
logsfeature of thesentrycrate and setenable_logstotruein your client options.Then, use the
logger_trace!,logger_debug!,logger_info!,logger_warn!,logger_error!andlogger_fatal!macros to capture logs.To filter or update logs before they are sent, you can use the
before_send_logclient option.Please note that breaking changes could occur until the API is finalized.
feat(logs): add log protocol types (#821) by @lcian
feat(logs): add ability to capture and send logs (#823) by @lcian & @Swatinem
feat(logs): add macro-based API (#827) by @lcian & @szokeasaurusrex
feat(logs): send logs in batches (#831) by @lcian
Behavioral changes
Scopeis associated with an object holding some tracing information.Scope::iter_trace_propagation_headershas been provided that will use the fallback tracing information if there is no currentSpanon theScope.Breaking changes
debug-logsfeature (#820) by @lciandebug-logsfeature of thesentrycrate, used for the SDK's own internal logging, has been removed.v0.38.1Compare Source
Fixes
sentry-actixoptionally whenrelease-healthis enabled (#806) by @lciansentry-actixis now being included as a dependency only when explicitly added, either as a direct dependency or through theactixfeature flag of thesentrycrate.Cargo.toml, it was previously being included as a dependency by default when using just thesentrycrate with default features.v0.38.0Compare Source
OpenTelemetry integration
An OpenTelemetry integration has been released. Please refer to the changelog entry below for the details.
Breaking changes
EventFilter::exceptionand always attach exception (#768) by @lcianEventFilter::Exceptionenum variant has been removed. Please useEventFilter::Eventinstead to achieve the same behavior.EventFilter::Eventwill always attach any error struct used within theerrorfield passed to thetracingmacro, asEventFilter::Exceptiondid previously.errorfield will also be attached to breadcrumbs as anerrorsfield resembling the structure of Sentry events created from error structs.release-healthflag insentry-actixand remove it from subcrates where unneeded (#787) by @lcianClientOptionsfieldsauto_session_trackingandsession_modeare now gated behind therelease-healthfeature flag of thesentrycrate.sentrywithdefault-features = false, you need to include therelease-healthfeature flag to benefit from the Release Health features of Sentry and have access to the aforementioned client options.release-healthfeature flag is used correctly insentry-actixto enable compilation of that subcrate when it's disabled.release-healthhas been removed from thesentry-tracingandsentry-towersubcrates, where it was unnecessary.surfcrate is unmaintained and it was holding back dependency upgrades.TransportFactoryand pass it as thetransportin yourClientOptionsBehavioral changes
send_default_piiinsentry-actixandsentry-tower(#771) by @lciansend_default_pii(disabled by default) is now honored bysentry-actixandsentry-tower.send_default_piitotruein yourClientOptions.DEBUG_METAon integration init (#773) by @lcianDebugImagesintegration has been updated to init theDEBUG_METALazyimmediately.Features
opentelemetrycrate has been released.opentelemetryAPI and send them to Sentry.sentry-actixas a feature ofsentry(#788) by @lciansentry-actixis now exposed by thesentrycrate assentry::integrations::actix, gated behind theactixfeature flag.sentry-actixsubcrate directly.Dependencies
Cargo.lock(#772) by @lcianVarious fixes & improvements
once_cellwithstd::sync::LazyLock(#776) by @FalkWoldmannsentry-opentelemetryto workspace (#789) by @lcianv0.37.0Compare Source
Breaking changes
cargo updateand bump MSRV to 1.81 (#754) by @lcianrelease-healthfeature (#749) by @pepperoni505release-healthfeature flag was introduced that gates the Release Health features of Sentry.sentry,sentry-actix,sentry-towerorsentry-tracingwith the default features.release-healthto get back the previous behavior.Features
actix-webnow supports capturing and attaching the request body to HTTP request transactions.send_default_piiin your client options for this to be enabled, and you can fine-tune the behavior using the new optionmax_request_body_size.transaction.set_datasets data onTraceContext(#739) by @lciantransaction.set_datanow sets data onTraceContext, as the SDK should not use theextrafield.in-appstack frames has been improved. Now the SDK will mark more frames as notin-app.in-appreporting.Fixes
sentry-actix.sentry-tracingwhen not capturing stack traces.anyhowwhen thebacktracefeature is enabled butRUST_BACKTRACEis not set.Various fixes & improvements
Dependencies
v0.36.0Compare Source
Various fixes & improvements
Syncif request isn't (#721) by @sypharaxumdependency to v0.8 (#718) by @Turbo87finish(#712) by @thomaseizingerv0.35.0Compare Source
Fixes:
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.