-
Notifications
You must be signed in to change notification settings - Fork 25
chore(deps): update rust crate sentry to 0.45 #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #475 +/- ##
=======================================
Coverage 35.55% 35.55%
=======================================
Files 178 178
Lines 18475 18475
=======================================
Hits 6568 6568
Misses 11907 11907 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6c5bfeb to
fa6a8f3
Compare
fa6a8f3 to
c79c5c8
Compare
c79c5c8 to
585bca1
Compare
585bca1 to
e2e9726
Compare
e2e9726 to
94ae285
Compare
9aa80f0 to
abd1c9d
Compare
abd1c9d to
8046732
Compare
8046732 to
8f4ad3f
Compare
8f4ad3f to
4d54537
Compare
4d54537 to
135940e
Compare
|
135940e to
c49e877
Compare
c49e877 to
2505985
Compare
This PR contains the following updates:
0.34->0.45Release Notes
getsentry/sentry-rust (sentry)
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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.