{"ecosystem":"cargo","package":"sentry-contexts","from_version":null,"to_version":null,"changes":[{"from_version":"0.47.0","to_version":"0.48.0","change_type":"breaking","description":"[`before_send_metric`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_metric), used to define a callback for filtering/pre-processing metrics before sending to Sentry ([#1064](https://github.com/getsentry/sentry-rust/pull/1064)).","migration_hint":null},{"from_version":"0.47.0","to_version":"0.48.0","change_type":"breaking","description":"Added the following metrics-related fields to the [`ClientOptions` struct in `sentry-core`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html). Both fields are no-ops, unless the `metrics` feature flag is enabled:","migration_hint":null},{"from_version":"0.47.0","to_version":"0.48.0","change_type":"breaking","description":"[`enable_metrics`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_metrics), used to enable sending metrics to Sentry ([#1073](https://github.com/getsentry/sentry-rust/pull/1073)).","migration_hint":null},{"from_version":"0.47.0","to_version":"0.48.0","change_type":"breaking","description":"There are several breakages related to the [SemVer feature additivity bug fixes](#semver-additivity-bug-fixes-2026-04):","migration_hint":null},{"from_version":"0.47.0","to_version":"0.48.0","change_type":"breaking","description":"[`sentry_core::ClientOptions`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html) fields [`before_send_log`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.before_send_log), [`enable_logs`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.enable_logs), [`auto_session_tracking`](https://docs.rs/sentry-core/latest/sentry_core/struct.ClientOptions.html#structfield.auto_session_tracking), and [`session_m","migration_hint":null},{"from_version":"0.46.2","to_version":"0.47.0","change_type":"breaking","description":"`sentry_core::HubSwitchGuard` is now `!Send`, preventing it from being moved across threads ([#957](https://github.com/getsentry/sentry-rust/pull/957)).","migration_hint":null},{"from_version":"0.46.2","to_version":"0.47.0","change_type":"breaking","description":"Update reqwest from 0.12.25 to 0.13.1 ([#998](https://github.com/getsentry/sentry-rust/pull/998)). This change is breaking for users who use the [`RequestHttpTransport::with_client`](https://docs.rs/sentry/latest/sentry/transports/struct.ReqwestHttpTransport.html#method.with_client) method.","migration_hint":null},{"from_version":"0.45.0","to_version":"0.46.0","change_type":"breaking","description":"These fields configured backtrace trimming, which is being removed in this release.","migration_hint":null},{"from_version":"0.45.0","to_version":"0.46.0","change_type":"breaking","description":"Removed the `ClientOptions` struct's `trim_backtraces` and `extra_border_frames` fields ([#925](https://github.com/getsentry/sentry-rust/pull/925)).","migration_hint":null},{"from_version":"0.44.0","to_version":"0.45.0","change_type":"breaking","description":"Add custom variant to `AttachmentType` that holds an arbitrary String. ([#916](https://github.com/getsentry/sentry-rust/pull/916))","migration_hint":null},{"from_version":"0.43.0","to_version":"0.44.0","change_type":"breaking","description":"It's now possible to map a `log` record to multiple items in Sentry by combining multiple log filters in the filter, e.g. `log::Level::ERROR => LogFilter::Event | LogFilter::Log`.","migration_hint":null},{"from_version":"0.43.0","to_version":"0.44.0","change_type":"breaking","description":"feat(log): support combined LogFilters and RecordMappings ([#914](https://github.com/getsentry/sentry-rust/pull/914)) by @lcian","migration_hint":null},{"from_version":"0.43.0","to_version":"0.44.0","change_type":"breaking","description":"Breaking change: `sentry::integrations::log::LogFilter` has been changed to a `bitflags` struct.","migration_hint":null},{"from_version":"0.43.0","to_version":"0.44.0","change_type":"breaking","description":"If using a custom `mapper` instead, it's possible to return a `Vec<sentry::integrations::log::RecordMapping>` to map a `log` record to multiple items in Sentry.","migration_hint":null},{"from_version":"0.42.0","to_version":"0.43.0","change_type":"breaking","description":"The `tracing` integration now uses `<span target>::<span name>` as the default Sentry span op (i.e. `<module>::<function>` when using `tracing::instrument`).","migration_hint":null},{"from_version":"0.42.0","to_version":"0.43.0","change_type":"breaking","description":"ref(tracing): rework tracing to Sentry span name/op conversion ([#887](https://github.com/getsentry/sentry-rust/pull/887)) by @lcian","migration_hint":null},{"from_version":"0.42.0","to_version":"0.43.0","change_type":"breaking","description":"The `tracing` integration now uses the tracing span name as the Sentry span name by default.","migration_hint":null},{"from_version":"0.42.0","to_version":"0.43.0","change_type":"breaking","description":"Before this change, the span name would be set based on the `tracing` span target (`<module>::<function>` when using the `tracing::instrument` macro).","migration_hint":null},{"from_version":"0.42.0","to_version":"0.43.0","change_type":"breaking","description":"Before this change, the span op would be set based on the `tracing` span name.","migration_hint":null},{"from_version":"0.40.0","to_version":"0.41.0","change_type":"breaking","description":"It's also possible to use `EventMapping::Combined` to map a `tracing` event to multiple items in Sentry.","migration_hint":null},{"from_version":"0.40.0","to_version":"0.41.0","change_type":"breaking","description":"feat(tracing): support combined EventFilters and EventMappings (#847) by @lcian","migration_hint":null},{"from_version":"0.40.0","to_version":"0.41.0","change_type":"breaking","description":"`EventFilter` has been changed to a `bitflags` struct.","migration_hint":null},{"from_version":"0.40.0","to_version":"0.41.0","change_type":"breaking","description":"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`.","migration_hint":null},{"from_version":"0.40.0","to_version":"0.41.0","change_type":"breaking","description":"`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.","migration_hint":null},{"from_version":"0.39.0","to_version":"0.40.0","change_type":"breaking","description":"refactor(logs): apply user attributes to log regardless of `send_default_pii` (#843) by @lcian","migration_hint":null},{"from_version":"0.39.0","to_version":"0.40.0","change_type":"breaking","description":"User attributes should be applied to logs regardless of `send_default_pii`. Therefore, that parameter was removed from `sentry_core::Scope::apply_to_log`.","migration_hint":null},{"from_version":"0.38.1","to_version":"0.39.0","change_type":"breaking","description":"refactor: remove `debug-logs` feature (#820) by @lcian","migration_hint":null},{"from_version":"0.38.1","to_version":"0.39.0","change_type":"breaking","description":"The deprecated `debug-logs` feature of the `sentry` crate, used for the SDK's own internal logging, has been removed.","migration_hint":null},{"from_version":"0.37.0","to_version":"0.38.0","change_type":"breaking","description":"The `EventFilter::Exception` enum variant has been removed. Please use `EventFilter::Event` instead to achieve the same behavior.","migration_hint":null},{"from_version":"0.37.0","to_version":"0.38.0","change_type":"breaking","description":"refactor(tracing): remove `EventFilter::exception` and always attach exception (#768) by @lcian","migration_hint":null},{"from_version":"0.37.0","to_version":"0.38.0","change_type":"breaking","description":"Using `EventFilter::Event` will always attach any error struct used within the `error` field passed to the `tracing` macro, as `EventFilter::Exception` did previously.","migration_hint":null},{"from_version":"0.37.0","to_version":"0.38.0","change_type":"breaking","description":"The `error` field will also be attached to breadcrumbs as an `errors` field resembling the structure of Sentry events created from error structs.","migration_hint":null},{"from_version":"0.37.0","to_version":"0.38.0","change_type":"breaking","description":"fix: use `release-health` flag in `sentry-actix` and remove it from subcrates where unneeded (#787) by @lcian","migration_hint":null},{"from_version":"0.36.0","to_version":"0.37.0","change_type":"breaking","description":"chore(msrv): `cargo update` and bump MSRV to 1.81 (#754) by @lcian","migration_hint":null},{"from_version":"0.36.0","to_version":"0.37.0","change_type":"breaking","description":"The minimum supported Rust version has been raised to 1.81.","migration_hint":null},{"from_version":"0.36.0","to_version":"0.37.0","change_type":"breaking","description":"feat(core): introduce `release-health` feature (#749) by @pepperoni505","migration_hint":null},{"from_version":"0.36.0","to_version":"0.37.0","change_type":"breaking","description":"A new `release-health` feature flag was introduced that gates the [Release Health](https://docs.sentry.io/product/releases/health/) features of Sentry.","migration_hint":null},{"from_version":"0.36.0","to_version":"0.37.0","change_type":"breaking","description":"This allows for compilation of the SDK on certain WASM targets.","migration_hint":null}],"total":38,"note":"Curated major-version breaking changes. Always verify against the package's official changelog before migrating.","_cache":"hit"}