From 498ce9bec6c1ee858e5c4879724cce3a0747b885 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Wed, 25 Jan 2023 09:37:52 +0000 Subject: [PATCH] release: 0.29.2 --- CHANGELOG.md | 13 ++++++++ sentry-actix/Cargo.toml | 4 +-- sentry-anyhow/Cargo.toml | 6 ++-- sentry-backtrace/Cargo.toml | 4 +-- sentry-contexts/Cargo.toml | 4 +-- sentry-core/Cargo.toml | 4 +-- sentry-core/README.md | 2 +- sentry-debug-images/Cargo.toml | 4 +-- sentry-debug-images/README.md | 2 +- sentry-log/Cargo.toml | 4 +-- sentry-panic/Cargo.toml | 6 ++-- sentry-slog/Cargo.toml | 4 +-- sentry-tower/Cargo.toml | 4 +-- sentry-tower/README.md | 2 +- sentry-tracing/Cargo.toml | 4 +-- sentry-types/Cargo.toml | 2 +- sentry/Cargo.toml | 22 ++++++------ sentry/README.md | 61 +++++++++++++++++----------------- 18 files changed, 83 insertions(+), 69 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99aca754..630235f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.29.2 + +### Various fixes & improvements + +- fix: Prefer `match_pattern` over `match_name` in actix (#539) by @wuerges +- feat(profiling): Add profile context to transaction. (#538) by @viglia +- Re-disable scheduled jobs on forks (#537) by @MarijnS95 +- fix: Avoid Deadlock popping ScopeGuards out of order (#536) by @Swatinem +- sentry-core: make TraceContext publicly readable (#534) by @tommilligan +- sentry-core: make TransactionContext.trace_id readable (#533) by @tommilligan +- docs: fix outdated `native-tls`/`rustls` info in README (#535) by @seritools +- features: Make `tower-http` enable the `tower` feature (#532) by @Turbo87 + ## 0.29.1 **Features**: diff --git a/sentry-actix/Cargo.toml b/sentry-actix/Cargo.toml index 17df40d3..8be51347 100644 --- a/sentry-actix/Cargo.toml +++ b/sentry-actix/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-actix" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,7 +15,7 @@ rust-version = "1.60" [dependencies] actix-web = { version = "4", default-features = false } futures-util = { version = "0.3.5", default-features = false } -sentry-core = { version = "0.29.1", path = "../sentry-core", default-features = false, features = ["client"] } +sentry-core = { version = "0.29.2", path = "../sentry-core", default-features = false, features = ["client"] } [dev-dependencies] actix-web = { version = "4" } diff --git a/sentry-anyhow/Cargo.toml b/sentry-anyhow/Cargo.toml index 91ca996d..49922962 100644 --- a/sentry-anyhow/Cargo.toml +++ b/sentry-anyhow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-anyhow" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -17,8 +17,8 @@ default = ["backtrace"] backtrace = ["anyhow/backtrace"] [dependencies] -sentry-backtrace = { version = "0.29.1", path = "../sentry-backtrace" } -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-backtrace = { version = "0.29.2", path = "../sentry-backtrace" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } anyhow = "1.0.39" [dev-dependencies] diff --git a/sentry-backtrace/Cargo.toml b/sentry-backtrace/Cargo.toml index 9e0214cf..336f128b 100644 --- a/sentry-backtrace/Cargo.toml +++ b/sentry-backtrace/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-backtrace" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -16,4 +16,4 @@ rust-version = "1.60" backtrace = "0.3.44" once_cell = "1" regex = "1.5.5" -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } diff --git a/sentry-contexts/Cargo.toml b/sentry-contexts/Cargo.toml index 16e68a6b..ac4c7326 100644 --- a/sentry-contexts/Cargo.toml +++ b/sentry-contexts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-contexts" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -14,7 +14,7 @@ edition = "2021" rust-version = "1.60" [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } libc = "0.2.66" hostname = "0.3.0" diff --git a/sentry-core/Cargo.toml b/sentry-core/Cargo.toml index ee5a7cb6..45611700 100644 --- a/sentry-core/Cargo.toml +++ b/sentry-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-core" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -33,7 +33,7 @@ frame-pointer = ["pprof?/frame-pointer"] log = { version = "0.4.8", optional = true, features = ["std"] } once_cell = "1" rand = { version = "0.8.1", optional = true } -sentry-types = { version = "0.29.1", path = "../sentry-types" } +sentry-types = { version = "0.29.2", path = "../sentry-types" } serde = { version = "1.0.104", features = ["derive"] } serde_json = { version = "1.0.46" } uuid = { version = "1.0.0", features = ["v4", "serde"], optional = true } diff --git a/sentry-core/README.md b/sentry-core/README.md index 525cf8ef..8363c3fa 100644 --- a/sentry-core/README.md +++ b/sentry-core/README.md @@ -102,7 +102,7 @@ functionality. [Sentry]: https://sentry.io/ [`sentry`]: https://crates.io/crates/sentry [Unified API]: https://develop.sentry.dev/sdk/unified-api/ -[`test`]: https://docs.rs/sentry-core/0.29.1/sentry_core/test/index.html +[`test`]: https://docs.rs/sentry-core/0.29.2/sentry_core/test/index.html ## Resources diff --git a/sentry-debug-images/Cargo.toml b/sentry-debug-images/Cargo.toml index 84e27abc..84503641 100644 --- a/sentry-debug-images/Cargo.toml +++ b/sentry-debug-images/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-debug-images" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,4 +15,4 @@ rust-version = "1.60" [dependencies] findshlibs = "=0.10.2" once_cell = "1" -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } diff --git a/sentry-debug-images/README.md b/sentry-debug-images/README.md index 07d02676..7efb2fc5 100644 --- a/sentry-debug-images/README.md +++ b/sentry-debug-images/README.md @@ -22,7 +22,7 @@ let integration = sentry_debug_images::DebugImagesIntegration::new() .filter(|event| event.level >= Level::Warning); ``` -[`Event`]: https://docs.rs/sentry-debug-images/0.29.1/sentry_debug_images/sentry_core::protocol::Event +[`Event`]: https://docs.rs/sentry-debug-images/0.29.2/sentry_debug_images/sentry_core::protocol::Event ## Resources diff --git a/sentry-log/Cargo.toml b/sentry-log/Cargo.toml index a847a911..a6f1f706 100644 --- a/sentry-log/Cargo.toml +++ b/sentry-log/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-log" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.60" [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } log = { version = "0.4.8", features = ["std"] } [dev-dependencies] diff --git a/sentry-panic/Cargo.toml b/sentry-panic/Cargo.toml index e52a3ed6..4d7463b5 100644 --- a/sentry-panic/Cargo.toml +++ b/sentry-panic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-panic" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -13,8 +13,8 @@ edition = "2021" rust-version = "1.60" [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.29.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } +sentry-backtrace = { version = "0.29.2", path = "../sentry-backtrace" } [dev-dependencies] sentry = { path = "../sentry", default-features = false, features = ["test"] } diff --git a/sentry-slog/Cargo.toml b/sentry-slog/Cargo.toml index 6cd9d7d3..75dd1f44 100644 --- a/sentry-slog/Cargo.toml +++ b/sentry-slog/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-slog" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.60" [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core" } +sentry-core = { version = "0.29.2", path = "../sentry-core" } slog = { version = "2.5.2", features = ["nested-values"] } serde_json = "1.0.46" diff --git a/sentry-tower/Cargo.toml b/sentry-tower/Cargo.toml index ddf1b268..92ffad7f 100644 --- a/sentry-tower/Cargo.toml +++ b/sentry-tower/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-tower" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -20,7 +20,7 @@ tower-layer = "0.3" tower-service = "0.3" http = { version = "0.2.6", optional = true } pin-project = { version = "1.0.10", optional = true } -sentry-core = { version = "0.29.1", path = "../sentry-core", default-features = false, features = ["client"] } +sentry-core = { version = "0.29.2", path = "../sentry-core", default-features = false, features = ["client"] } url = { version = "2.2.2", optional = true } [dev-dependencies] diff --git a/sentry-tower/README.md b/sentry-tower/README.md index b70c670a..df0f3adf 100644 --- a/sentry-tower/README.md +++ b/sentry-tower/README.md @@ -101,7 +101,7 @@ transaction based on the incoming HTTP headers. The created transaction will automatically use the request URI as its name. This is sometimes not desirable in case the request URI contains unique IDs or similar. In this case, users should manually override the transaction name -in the request handler using the [`Scope::set_transaction`](https://docs.rs/sentry-tower/0.29.1/sentry_tower/sentry_core::Scope::set_transaction) +in the request handler using the [`Scope::set_transaction`](https://docs.rs/sentry-tower/0.29.2/sentry_tower/sentry_core::Scope::set_transaction) method. When combining both layers, take care of the ordering of both. For example diff --git a/sentry-tracing/Cargo.toml b/sentry-tracing/Cargo.toml index 8aefc23b..03ee4ffc 100644 --- a/sentry-tracing/Cargo.toml +++ b/sentry-tracing/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-tracing" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.60" [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core", features = ["client"] } +sentry-core = { version = "0.29.2", path = "../sentry-core", features = ["client"] } tracing-core = "0.1" tracing-subscriber = { version = "0.3.1", default-features = false, features = ["std"] } diff --git a/sentry-types/Cargo.toml b/sentry-types/Cargo.toml index e8400f09..f08b1c5e 100644 --- a/sentry-types/Cargo.toml +++ b/sentry-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-types" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" diff --git a/sentry/Cargo.toml b/sentry/Cargo.toml index 656627df..7ffe2b57 100644 --- a/sentry/Cargo.toml +++ b/sentry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry" -version = "0.29.1" +version = "0.29.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -52,16 +52,16 @@ native-tls = ["dep:native-tls", "reqwest?/default-tls", "ureq?/native-tls"] rustls = ["dep:rustls", "reqwest?/rustls-tls", "ureq?/tls", "webpki-roots"] [dependencies] -sentry-core = { version = "0.29.1", path = "../sentry-core", features = ["client"] } -sentry-anyhow = { version = "0.29.1", path = "../sentry-anyhow", optional = true } -sentry-backtrace = { version = "0.29.1", path = "../sentry-backtrace", optional = true } -sentry-contexts = { version = "0.29.1", path = "../sentry-contexts", optional = true } -sentry-debug-images = { version = "0.29.1", path = "../sentry-debug-images", optional = true } -sentry-log = { version = "0.29.1", path = "../sentry-log", optional = true } -sentry-panic = { version = "0.29.1", path = "../sentry-panic", optional = true } -sentry-slog = { version = "0.29.1", path = "../sentry-slog", optional = true } -sentry-tower = { version = "0.29.1", path = "../sentry-tower", optional = true } -sentry-tracing = { version = "0.29.1", path = "../sentry-tracing", optional = true } +sentry-core = { version = "0.29.2", path = "../sentry-core", features = ["client"] } +sentry-anyhow = { version = "0.29.2", path = "../sentry-anyhow", optional = true } +sentry-backtrace = { version = "0.29.2", path = "../sentry-backtrace", optional = true } +sentry-contexts = { version = "0.29.2", path = "../sentry-contexts", optional = true } +sentry-debug-images = { version = "0.29.2", path = "../sentry-debug-images", optional = true } +sentry-log = { version = "0.29.2", path = "../sentry-log", optional = true } +sentry-panic = { version = "0.29.2", path = "../sentry-panic", optional = true } +sentry-slog = { version = "0.29.2", path = "../sentry-slog", optional = true } +sentry-tower = { version = "0.29.2", path = "../sentry-tower", optional = true } +sentry-tracing = { version = "0.29.2", path = "../sentry-tracing", optional = true } log = { version = "0.4.8", optional = true, features = ["std"] } reqwest = { version = "0.11", optional = true, features = ["blocking", "json"], default-features = false } curl = { version = "0.4.25", optional = true } diff --git a/sentry/README.md b/sentry/README.md index 0fadc778..7dc95583 100644 --- a/sentry/README.md +++ b/sentry/README.md @@ -34,8 +34,8 @@ sentry::capture_message("Hello World!", sentry::Level::Info); More complex examples on how to use sentry can also be found in [examples]. Extended instructions may also be found on [Sentry itself]. -[`sentry::init`]: https://docs.rs/sentry/0.29.1/sentry/fn.init.html -[`Hub`]: https://docs.rs/sentry/0.29.1/sentry/struct.Hub.html +[`sentry::init`]: https://docs.rs/sentry/0.29.2/sentry/fn.init.html +[`Hub`]: https://docs.rs/sentry/0.29.2/sentry/struct.Hub.html [examples]: https://github.com/getsentry/sentry-rust/tree/master/sentry/examples [Sentry itself]: https://docs.sentry.io/platforms/rust @@ -47,8 +47,8 @@ the ecosystem require a feature flag. For available integrations and how to use [integrations] and [apply_defaults]. [Features]: #features -[integrations]: https://docs.rs/sentry/0.29.1/sentry/integrations/index.html -[apply_defaults]: https://docs.rs/sentry/0.29.1/sentry/fn.apply_defaults.html +[integrations]: https://docs.rs/sentry/0.29.2/sentry/integrations/index.html +[apply_defaults]: https://docs.rs/sentry/0.29.2/sentry/fn.apply_defaults.html ## Minimal API @@ -56,8 +56,8 @@ This crate comes fully-featured. If the goal is to instrument libraries for usag with sentry, or to extend sentry with a custom [`Integration`] or a [`Transport`], one should use the [`sentry-core`] crate instead. -[`Integration`]: https://docs.rs/sentry/0.29.1/sentry/trait.Integration.html -[`Transport`]: https://docs.rs/sentry/0.29.1/sentry/trait.Transport.html +[`Integration`]: https://docs.rs/sentry/0.29.2/sentry/trait.Integration.html +[`Transport`]: https://docs.rs/sentry/0.29.2/sentry/trait.Transport.html [`sentry-core`]: https://crates.io/crates/sentry-core ## Features @@ -65,25 +65,26 @@ one should use the [`sentry-core`] crate instead. Additional functionality and integrations are enabled via feature flags. Some features require extra setup to function properly. -| Feature | Default | Is Integration | Deprecated | Additional notes | -| -------------- | ------- | -------------- | ---------- | -------------------------------------------------------------------------------------------------- | -| `backtrace` | ✅ | 🔌 | | | -| `contexts` | ✅ | 🔌 | | | -| `panic` | ✅ | 🔌 | | | -| `transport` | ✅ | | | | -| `anyhow` | | 🔌 | | | -| `test` | | | | | -| `debug-images` | | 🔌 | | | -| `log` | | 🔌 | | Requires extra setup; See [`sentry-log`]'s documentation. | -| `debug-logs` | | | ❗ | Requires extra setup; See [`sentry-log`]'s documentation. | -| `slog` | | 🔌 | | Requires extra setup; See [`sentry-slog`]'s documentation. | -| `reqwest` | ✅ | | | | -| `native-tls` | ✅ | | | `reqwest` or `ureq` must be enabled. | -| `rustls` | | | | `reqwest` or `ureq` must be enabled. `native-tls` must be disabled via `default-features = false`. | -| `curl` | | | | | -| `surf` | | | | | -| `tower` | | 🔌 | | Requires extra setup; See [`sentry-tower`]'s documentation. | -| `ureq` | | | | `ureq` transport support using `rustls` by default | +| Feature | Default | Is Integration | Deprecated | Additional notes | +| -------------- | ------- | -------------- | ---------- | ---------------------------------------------------------------------------------------- | +| `backtrace` | ✅ | 🔌 | | | +| `contexts` | ✅ | 🔌 | | | +| `panic` | ✅ | 🔌 | | | +| `transport` | ✅ | | | | +| `anyhow` | | 🔌 | | | +| `test` | | | | | +| `debug-images` | | 🔌 | | | +| `log` | | 🔌 | | Requires extra setup; See [`sentry-log`]'s documentation. | +| `debug-logs` | | | ❗ | Requires extra setup; See [`sentry-log`]'s documentation. | +| `slog` | | 🔌 | | Requires extra setup; See [`sentry-slog`]'s documentation. | +| `reqwest` | ✅ | | | | +| `native-tls` | ✅ | | | `reqwest` must be enabled. | +| `rustls` | | | | `reqwest` must be enabled. `native-tls` must be disabled via `default-features = false`. | +| `curl` | | | | | +| `surf` | | | | | +| `tower` | | 🔌 | | Requires extra setup; See [`sentry-tower`]'s documentation. | +| `ureq` | | | | `ureq` transport support using `rustls` by default | +| `ureq-native-tls` | | | | | [`sentry-log`]: https://crates.io/crates/sentry-log [`sentry-slog`]: https://crates.io/crates/sentry-slog @@ -107,14 +108,14 @@ extra setup to function properly. ### Transports - `reqwest`: **Default**. Enables the `reqwest` transport. -- `native-tls`: **Default**. Uses the `native-tls` crate. This affects the `reqwest` and `ureq` - transport. -- `rustls`: Enables `rustls` support for `reqwest` or `ureq`. Please note that `native-tls` is a - default feature, and `default-features = false` must be set to completely disable building - `native-tls` dependencies. +- `native-tls`: **Default**. Uses the `native-tls` crate. This only affects the `reqwest` transport. +- `rustls`: Enables `rustls` support for `reqwest`. Please note that `native-tls` is a default + feature, and `default-features = false` must be set to completely disable building `native-tls` + dependencies. - `curl`: Enables the `curl` transport. - `surf`: Enables the `surf` transport. - `ureq`: Enables the `ureq` transport using `rustls`. +- `ureq-native-tls`: Enables the `ureq` transport using `native-tls`. ### Integrations - `tower`: Enables support for the `tower` crate and those using it.