Skip to content

fix(deps): update sentry-rust to 0.42.0 #278

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 29, 2024

This PR contains the following updates:

Package Type Update Change
sentry (source) dependencies minor 0.34.0 -> 0.42.0
sentry-actix (source) dependencies minor 0.34.0 -> 0.42.0

Release Notes

getsentry/sentry-rust (sentry)

v0.42.0

Compare Source

Features
  • feat(log): support kv feature of log (#​851) by @​lcian
    • Attributes added to a log record using the kv feature are now recorded as attributes on the log sent to Sentry.
  • feat(types): add all the missing supported envelope headers (#​867) by @​lcian
  • feat(types): add setters for envelope headers (#​868) by @​lcian
    • It's now possible to set all of the envelope headers supported by the protocol when constructing envelopes.
  • feat(core): add some DSC fields to transaction envelope headers (#​869) by @​lcian
    • The SDK now sends additional envelope headers with transactions. This should solve some extrapolation issues for span metrics.
Behavioral changes
  • feat: filter username and password in URLs (#​864) by @​lcian
    • Usernames and passwords that could be contained in URLs captured when using the Actix Web or axum integration are now always filtered out.
    • If the Request is created manually by the user, then these fields are not filtered out.
    • This information was already filtered by Relay, but should also be filtered by the SDK itself as a first line of defense.
Fixes

v0.41.0

Compare Source

Breaking changes
  • feat(tracing): support combined EventFilters and EventMappings (#​847) by @​lcian
    • EventFilter has been changed to a bitflags struct.
    • It's now possible to map a tracing event to multiple items in Sentry by combining multiple event filters in the event_filter, e.g. tracing::Level::ERROR => EventFilter::Event | EventFilter::Log.
    • It's also possible to use EventMapping::Combined to map a tracing event to multiple items in Sentry.
    • ctx in the signatures of event_from_event, breadcrumb_from_event and log_from_event has been changed to take impl Into<Option<&'context Context<'context, S>>> to avoid cloning the Context when mapping to multiple items.
Features
  • feat(core): emit debug log when calling capture_log but logs are disabled (#​849) by @​lcian
Fixes
  • fix(logs): stringify u64 attributes greater than i64::MAX (#​846) by @​lcian
Dependencies

v0.40.0

Compare Source

Breaking changes
  • refactor(logs): apply user attributes to log regardless of send_default_pii (#​843) by @​lcian
    • User attributes should be applied to logs regardless of send_default_pii. Therefore, that parameter was removed from sentry_core::Scope::apply_to_log.
Features
  • feat(tracing): add support for logs (#​840) by @​lcian
    • To capture tracing events as Sentry structured logs, enable the logs feature of the sentry crate.
    • Then, initialize the SDK with enable_logs: true in your client options.
    • Finally, set up a custom event filter to map events to logs based on criteria such as severity. For example:
        let sentry_layer = sentry_tracing::layer().event_filter(|md| match *md.level() {
            tracing::Level::ERROR => EventFilter::Event,
            tracing::Level::TRACE => EventFilter::Ignore,
            _ => EventFilter::Log,
        });
  • feat(log): add support for logs (#​841) by @​lcian
    • To capture log records as Sentry structured logs, enable the logs feature of the sentry crate.
    • Then, initialize the SDK with enable_logs: true in your client options.
    • Finally, set up a custom event filter to map records to Sentry logs based on criteria such as severity. For example:
        let logger = sentry::integrations::log::SentryLogger::new().filter(|md| match md.level() {
            log::Level::Error => LogFilter::Event,
            log::Level::Trace => LogFilter::Ignore,
            _ => LogFilter::Log,
        });
  • refactor(logs): cache default attributes and add OS attributes (#​842) by @​lcian
    • os.name and os.version are now being attached to logs as default attributes.
Fixes
  • fix(logs): send environment in sentry.environment default attribute (#​837) by @​lcian
Behavioral changes
  • refactor(tracing): refactor internal code and improve docs (#​839) by @​lcian
    • Errors carried by breadcrumbs will now be stored in the breadcrumb data under their original field name.
    • Before, they were all stored under a single key called errors.
Dependencies

v0.39.0

Compare Source

Features

Support for Sentry structured logs has been added to the SDK.

  • To set up logs, enable the logs feature of the sentry crate and set enable_logs to true in your client options.

  • Then, use the logger_trace!, logger_debug!, logger_info!, logger_warn!, logger_error! and logger_fatal! macros to capture logs.

  • To filter or update logs before they are sent, you can use the before_send_log client 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
  • feat(core): implement Tracing without Performance (#​811) by @​lcian
    • The SDK now implements Tracing without Performance, which makes it so that each Scope is associated with an object holding some tracing information.
    • This information is used as a fallback when capturing an event with tracing disabled or otherwise no ongoing span, to still allow related events to be linked by a trace.
    • A new API Scope::iter_trace_propagation_headers has been provided that will use the fallback tracing information if there is no current Span on the Scope.
Breaking changes
  • refactor: remove debug-logs feature (#​820) by @​lcian
    • The deprecated debug-logs feature of the sentry crate, used for the SDK's own internal logging, has been removed.

v0.38.1

Compare Source

Fixes
  • build: include sentry-actix optionally when release-health is enabled (#​806) by @​lcian
    • sentry-actix is now being included as a dependency only when explicitly added, either as a direct dependency or through the actix feature flag of the sentry crate.
    • Due to a mistake in the Cargo.toml, it was previously being included as a dependency by default when using just the sentry crate with default features.

v0.38.0

Compare Source

OpenTelemetry integration

An OpenTelemetry integration has been released. Please refer to the changelog entry below for the details.

Breaking changes
  • refactor(tracing): remove EventFilter::exception and always attach exception (#​768) by @​lcian
    • The EventFilter::Exception enum variant has been removed. Please use EventFilter::Event instead to achieve the same behavior.
    • Using EventFilter::Event will always attach any error struct used within the error field passed to the tracing macro, as EventFilter::Exception did previously.
    • The error field will also be attached to breadcrumbs as an errors field resembling the structure of Sentry events created from error structs.
  • fix: use release-health flag in sentry-actix and remove it from subcrates where unneeded (#​787) by @​lcian
    • As a follow-up from the changes in the previous release, the ClientOptions fields auto_session_tracking and session_mode are now gated behind the release-health feature flag of the sentry crate.
    • If you depend on sentry with default-features = false, you need to include the release-health feature flag to benefit from the Release Health features of Sentry and have access to the aforementioned client options.
    • The release-health feature flag is used correctly in sentry-actix to enable compilation of that subcrate when it's disabled.
    • The release-health has been removed from the sentry-tracing and sentry-tower subcrates, where it was unnecessary.
  • refactor: remove Surf transport (#​766) by @​lcian
    • The Surf transport has been removed as the surf crate is unmaintained and it was holding back dependency upgrades.
    • If you really want to still use Surf, you can define a custom TransportFactory and pass it as the transport in your ClientOptions
Behavioral changes
  • refactor: honor send_default_pii in sentry-actix and sentry-tower (#​771) by @​lcian
    • The client option send_default_pii (disabled by default) is now honored by sentry-actix and sentry-tower.
    • This means that potentially sensitive headers such as authorization, cookies, and those that usually contain the user's IP address are filtered and not sent to Sentry.
    • If you want to get back to the previous behavior and capture all headers, please set send_default_pii to true in your ClientOptions.
    • Please refer to our Data Collected page for a comprehensive view of the data collected by the SDK.
  • refactor(debug-images): force init DEBUG_META on integration init (#​773) by @​lcian
    • The DebugImages integration has been updated to init the DEBUG_META Lazy immediately.
    • Using this integration is known to cause issues in specific versions of the Linux kernel due to issues in a library it depends on.
    • Previously, on problematic systems the SDK would cause deadlock after capturing the first event. Now the SDK will panic on initialization instead. Please open an issue if you're affected.
Features
  • feat(otel): add OpenTelemetry SpanProcessor, Propagator, Extractor (#​779) by @​lcian
    • A new integration for the opentelemetry crate has been released.
    • It can be used to capture spans created using the opentelemetry API and send them to Sentry.
    • Distributed tracing is also supported, provided that the upstream/downstream services support the Sentry or W3C distributed tracing metadata format.
    • Please refer to the subcrate's README or the crate docs to see an example of setup and usage.
  • feat: expose sentry-actix as a feature of sentry (#​788) by @​lcian
    • sentry-actix is now exposed by the sentry crate as sentry::integrations::actix, gated behind the actix feature flag.
    • Please update your dependencies to not depend on the sentry-actix subcrate directly.
Dependencies
Various fixes & improvements

v0.37.0

Compare Source

Breaking changes
  • chore(msrv): cargo update and bump MSRV to 1.81 (#​754) by @​lcian
    • The minimum supported Rust version has been raised to 1.81.
  • feat(core): introduce release-health feature (#​749) by @​pepperoni505
    • A new release-health feature flag was introduced that gates the Release Health features of Sentry.
    • This allows for compilation of the SDK on certain WASM targets.
    • Release Health features were already present and enabled with no feature flag in previous versions.
    • The new feature flag will be enabled by default when using sentry, sentry-actix, sentry-tower or sentry-tracing with the default features.
    • If you're fine-tuning your feature flags, make sure to enable release-health to get back the previous behavior.
  • ref(metrics): remove features and code related to the old metrics beta (#​740) by @​lcian
    • The metrics feature and the code related to it has been removed from the crate, as the Sentry backend stopped ingesting metrics a while ago.
  • Switch to MIT license (#​724) by @​cleptric
    • The license for the crates has been changed to MIT.
Features
  • feat(actix): capture HTTP request body (#​731) by @​pacifistes
    • The middleware for actix-web now supports capturing and attaching the request body to HTTP request transactions.
    • You need to enable send_default_pii in your client options for this to be enabled, and you can fine-tune the behavior using the new option max_request_body_size.
  • feat(core): transaction.set_data sets data on TraceContext (#​739) by @​lcian
    • transaction.set_data now sets data on TraceContext, as the SDK should not use the extra field.
  • ref(backtrace): add entries and extra logic for in-app detection (#​756) by @​lcian
  • feat(core): add more frames to be considered not in_app (#​760) by @​lcian
    • The logic used by the SDK to detect in-app stack frames has been improved. Now the SDK will mark more frames as not in-app.
    • A similar improvement has been added to the Sentry backend so that old versions of the SDK can benefit from improved in-app reporting.
Fixes
  • fix(http): Finish transaction on drop (#​727) by @​Dav1dde
    • Fixed a bug where the current transaction was not finished (hence not sent to Sentry) when its corresponding future was dropped, e.g. due to a panic.
  • follow https://github.com/getsentry/sentry-rust/pull/439 for actix-web. fix https://github.com/getsentry/sentry-rust/issues/680 (#​737) by @​pavel-rosputko
    • The HTTP request metadata is now being correctly attached to transactions when using sentry-actix.
  • fix(tracing): wrap error with synthetic mechanism only if attaching stacktrace (#​755) by @​lcian
    • Fixed a bug that should result in improved grouping and issue titles for events reported by sentry-tracing when not capturing stack traces.
  • fix(actix): process request in other middleware using correct Hub (#​758) by @​lcian
    • The subsequent middleware in the chain when processing a request now execute within the correct Hub.
  • fix(anyhow): attach stacktrace only if error provides backtrace (#​759) by @​lcian
    • Fixed a bug where the SDK was providing incorrect stack traces when capturing an anyhow when the backtrace feature is enabled but RUST_BACKTRACE is not set.
    • This should result in correct grouping of the affected issues.
Various fixes & improvements
Dependencies

v0.36.0

Compare Source

Various fixes & improvements

v0.35.0

Compare Source

Fixes:

  • Envelopes will be discarded rather than blocking if the transport channel fills up (previously fixed in async-capable transports, now applied to the curl/ureq transports). (#​701)

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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot assigned sksat Nov 29, 2024
@renovate renovate bot requested a review from sksat November 29, 2024 10:52
@renovate renovate bot force-pushed the renovate/sentry branch from fc11361 to cd0dba2 Compare January 8, 2025 13:21
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.35.0 fix(deps): update sentry-rust to 0.36.0 Jan 8, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from cd0dba2 to 1998ef0 Compare April 1, 2025 14:30
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.36.0 fix(deps): update sentry-rust to 0.37.0 Apr 1, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from 1998ef0 to 0e2e632 Compare April 2, 2025 08:03
@renovate renovate bot force-pushed the renovate/sentry branch from 0e2e632 to ea88003 Compare May 9, 2025 16:07
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.37.0 fix(deps): update sentry-rust to 0.38.0 May 9, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from ea88003 to 3bf1e30 Compare June 10, 2025 12:32
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.38.0 fix(deps): update sentry-rust to 0.39.0 Jun 10, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from 3bf1e30 to 5530fe1 Compare June 17, 2025 12:31
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.39.0 fix(deps): update sentry-rust to 0.40.0 Jun 17, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from 5530fe1 to 6f364e5 Compare June 23, 2025 14:32
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.40.0 fix(deps): update sentry-rust to 0.41.0 Jun 23, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from 6f364e5 to cba6f9e Compare July 29, 2025 12:45
@renovate renovate bot changed the title fix(deps): update sentry-rust to 0.41.0 fix(deps): update sentry-rust to 0.42.0 Jul 29, 2025
@renovate renovate bot force-pushed the renovate/sentry branch from cba6f9e to 6346057 Compare August 10, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant