From 9641cd9700228f4c7c4da4d3a67d05ed869d5461 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Tue, 25 Jan 2022 14:43:15 +0000 Subject: [PATCH] release: 0.24.2 --- CHANGELOG.md | 2 +- 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 | 14 +++++++------- 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 | 16 ++++++++++++++++ sentry-tracing/Cargo.toml | 4 ++-- sentry-types/Cargo.toml | 2 +- sentry/Cargo.toml | 22 +++++++++++----------- sentry/README.md | 12 ++++++------ 18 files changed, 67 insertions(+), 51 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6594921..4c306c08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.24.2 **Fixes**: diff --git a/sentry-actix/Cargo.toml b/sentry-actix/Cargo.toml index e5793c65..77a2cbc6 100644 --- a/sentry-actix/Cargo.toml +++ b/sentry-actix/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-actix" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,7 +12,7 @@ Sentry client extension for actix-web 3. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core", default-features = false, features = ["client"] } +sentry-core = { version = "0.24.2", path = "../sentry-core", default-features = false, features = ["client"] } actix-web = { version = "3", default-features = false } futures-util = { version = "0.3.5", default-features = false } diff --git a/sentry-anyhow/Cargo.toml b/sentry-anyhow/Cargo.toml index 1d964070..613f035a 100644 --- a/sentry-anyhow/Cargo.toml +++ b/sentry-anyhow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-anyhow" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -16,8 +16,8 @@ default = ["backtrace"] backtrace = ["anyhow/backtrace"] [dependencies] -sentry-backtrace = { version = "0.24.1", path = "../sentry-backtrace" } -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-backtrace = { version = "0.24.2", path = "../sentry-backtrace" } +sentry-core = { version = "0.24.2", path = "../sentry-core" } anyhow = "1.0.39" [dev-dependencies] diff --git a/sentry-backtrace/Cargo.toml b/sentry-backtrace/Cargo.toml index 41f7ae98..0f05d30a 100644 --- a/sentry-backtrace/Cargo.toml +++ b/sentry-backtrace/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-backtrace" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,7 +12,7 @@ Sentry integration and utilities for dealing with stacktraces. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-core = { version = "0.24.2", path = "../sentry-core" } lazy_static = "1.4.0" backtrace = "0.3.44" regex = "1.3.4" diff --git a/sentry-contexts/Cargo.toml b/sentry-contexts/Cargo.toml index 03ff2a50..08a94856 100644 --- a/sentry-contexts/Cargo.toml +++ b/sentry-contexts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-contexts" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -13,7 +13,7 @@ build = "build.rs" edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-core = { version = "0.24.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 74bf9deb..51ba3cc6 100644 --- a/sentry-core/Cargo.toml +++ b/sentry-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-core" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -27,7 +27,7 @@ debug-logs = ["log_"] test = ["client"] [dependencies] -sentry-types = { version = "0.24.1", path = "../sentry-types" } +sentry-types = { version = "0.24.2", path = "../sentry-types" } serde = { version = "1.0.104", features = ["derive"] } lazy_static = "1.4.0" rand = { version = "0.8.1", optional = true } diff --git a/sentry-core/README.md b/sentry-core/README.md index 0dd7c8d7..8f361a9b 100644 --- a/sentry-core/README.md +++ b/sentry-core/README.md @@ -46,13 +46,13 @@ functionality. [Sentry]: https://sentry.io/ [`sentry`]: https://crates.io/crates/sentry [Unified API]: https://develop.sentry.dev/sdk/unified-api/ -[`Client`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Client.html -[`Hub`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Hub.html -[`Scope`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Scope.html -[`Integration`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.Integration.html -[`Transport`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.Transport.html -[`TransportFactory`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.TransportFactory.html -[`test`]: https://docs.rs/sentry-core/0.24.1/sentry_core/test/index.html +[`Client`]: https://docs.rs/sentry-core/0.24.2/sentry_core/struct.Client.html +[`Hub`]: https://docs.rs/sentry-core/0.24.2/sentry_core/struct.Hub.html +[`Scope`]: https://docs.rs/sentry-core/0.24.2/sentry_core/struct.Scope.html +[`Integration`]: https://docs.rs/sentry-core/0.24.2/sentry_core/trait.Integration.html +[`Transport`]: https://docs.rs/sentry-core/0.24.2/sentry_core/trait.Transport.html +[`TransportFactory`]: https://docs.rs/sentry-core/0.24.2/sentry_core/trait.TransportFactory.html +[`test`]: https://docs.rs/sentry-core/0.24.2/sentry_core/test/index.html ## Resources diff --git a/sentry-debug-images/Cargo.toml b/sentry-debug-images/Cargo.toml index 5f374556..3f7d7df0 100644 --- a/sentry-debug-images/Cargo.toml +++ b/sentry-debug-images/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-debug-images" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,6 +12,6 @@ Sentry integration that adds the list of loaded libraries to events. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-core = { version = "0.24.2", path = "../sentry-core" } lazy_static = "1.4.0" findshlibs = "=0.10.2" diff --git a/sentry-debug-images/README.md b/sentry-debug-images/README.md index 5385c268..24c26d96 100644 --- a/sentry-debug-images/README.md +++ b/sentry-debug-images/README.md @@ -25,7 +25,7 @@ let integration = sentry_debug_images::DebugImagesIntegration::new() .filter(|event| event.level >= Level::Warning); ``` -[`Event`]: https://docs.rs/sentry-debug-images/0.24.1/sentry_debug-images/sentry_core::protocol::Event +[`Event`]: https://docs.rs/sentry-debug-images/0.24.2/sentry_debug-images/sentry_core::protocol::Event ## Resources diff --git a/sentry-log/Cargo.toml b/sentry-log/Cargo.toml index df4b5b20..c5405a85 100644 --- a/sentry-log/Cargo.toml +++ b/sentry-log/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-log" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,7 +12,7 @@ Sentry integration for log and env_logger crates. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-core = { version = "0.24.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 838c684d..99c5ae02 100644 --- a/sentry-panic/Cargo.toml +++ b/sentry-panic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-panic" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,8 +12,8 @@ Sentry integration for capturing panics. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.24.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.24.2", path = "../sentry-core" } +sentry-backtrace = { version = "0.24.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 2faba5a6..4ba7efeb 100644 --- a/sentry-slog/Cargo.toml +++ b/sentry-slog/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-slog" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,7 +12,7 @@ Sentry integration for the slog crate. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core" } +sentry-core = { version = "0.24.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 d4b27afb..7e3d3e29 100644 --- a/sentry-tower/Cargo.toml +++ b/sentry-tower/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-tower" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -19,7 +19,7 @@ tower-layer = "0.3" tower-service = "0.3" http_ = { package = "http", version = "0.2.6", optional = true } pin-project = { version = "1.0.10", optional = true } -sentry-core = { version = "0.24.1", path = "../sentry-core", default-features = false, features = ["client"] } +sentry-core = { version = "0.24.2", path = "../sentry-core", default-features = false, features = ["client"] } [dev-dependencies] anyhow = "1" diff --git a/sentry-tower/README.md b/sentry-tower/README.md index 04765efa..4bb6cd50 100644 --- a/sentry-tower/README.md +++ b/sentry-tower/README.md @@ -87,6 +87,22 @@ Server::builder() .await?; ``` +### Usage with `tower-http` + +The `http` feature offers another layer which will attach request details +onto captured events, and optionally start a new performance monitoring +transaction based on the incoming HTTP headers. + +When combining both layers, take care of the ordering of both. For example +with [`tower::ServiceBuilder`], always define the `Hub` layer before the `Http` +one, like so: + +```rust +let layer = tower::ServiceBuilder::new() + .layer(sentry_tower::NewSentryLayer::::new_from_top()) + .layer(sentry_tower::SentryHttpLayer::with_transaction()); +``` + ## Resources License: Apache-2.0 diff --git a/sentry-tracing/Cargo.toml b/sentry-tracing/Cargo.toml index a1079f89..53f436a9 100644 --- a/sentry-tracing/Cargo.toml +++ b/sentry-tracing/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-tracing" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -12,7 +12,7 @@ Sentry integration for tracing and tracing-subscriber crates. edition = "2018" [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core", features = ["client"] } +sentry-core = { version = "0.24.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 4f228284..2ce39805 100644 --- a/sentry-types/Cargo.toml +++ b/sentry-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-types" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" diff --git a/sentry/Cargo.toml b/sentry/Cargo.toml index f2c67dcf..d1cc4be5 100644 --- a/sentry/Cargo.toml +++ b/sentry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry" -version = "0.24.1" +version = "0.24.2" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -46,16 +46,16 @@ native-tls = ["reqwest_/default-tls"] rustls = ["reqwest_/rustls-tls"] [dependencies] -sentry-core = { version = "0.24.1", path = "../sentry-core", features = ["client"] } -sentry-anyhow = { version = "0.24.1", path = "../sentry-anyhow", optional = true } -sentry-backtrace = { version = "0.24.1", path = "../sentry-backtrace", optional = true } -sentry-contexts = { version = "0.24.1", path = "../sentry-contexts", optional = true } -sentry-debug-images = { version = "0.24.1", path = "../sentry-debug-images", optional = true } -sentry-log = { version = "0.24.1", path = "../sentry-log", optional = true } -sentry-panic = { version = "0.24.1", path = "../sentry-panic", optional = true } -sentry-slog = { version = "0.24.1", path = "../sentry-slog", optional = true } -sentry-tower = { version = "0.24.1", path = "../sentry-tower", optional = true } -sentry-tracing = { version = "0.24.1", path = "../sentry-tracing", optional = true } +sentry-core = { version = "0.24.2", path = "../sentry-core", features = ["client"] } +sentry-anyhow = { version = "0.24.2", path = "../sentry-anyhow", optional = true } +sentry-backtrace = { version = "0.24.2", path = "../sentry-backtrace", optional = true } +sentry-contexts = { version = "0.24.2", path = "../sentry-contexts", optional = true } +sentry-debug-images = { version = "0.24.2", path = "../sentry-debug-images", optional = true } +sentry-log = { version = "0.24.2", path = "../sentry-log", optional = true } +sentry-panic = { version = "0.24.2", path = "../sentry-panic", optional = true } +sentry-slog = { version = "0.24.2", path = "../sentry-slog", optional = true } +sentry-tower = { version = "0.24.2", path = "../sentry-tower", optional = true } +sentry-tracing = { version = "0.24.2", path = "../sentry-tracing", optional = true } log_ = { package = "log", version = "0.4.8", optional = true, features = ["std"] } reqwest_ = { package = "reqwest", version = "0.11", optional = true, features = ["blocking", "json"], default-features = false } curl_ = { package = "curl", version = "0.4.25", optional = true } diff --git a/sentry/README.md b/sentry/README.md index 62ddf7bd..fda637ee 100644 --- a/sentry/README.md +++ b/sentry/README.md @@ -33,8 +33,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.24.1/sentry/fn.init.html -[`Hub`]: https://docs.rs/sentry/0.24.1/sentry/struct.Hub.html +[`sentry::init`]: https://docs.rs/sentry/0.24.2/sentry/fn.init.html +[`Hub`]: https://docs.rs/sentry/0.24.2/sentry/struct.Hub.html [examples]: https://github.com/getsentry/sentry-rust/tree/master/sentry/examples [Sentry itself]: https://docs.sentry.io/platforms/rust @@ -46,8 +46,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.24.1/sentry/integrations/index.html -[apply_defaults]: https://docs.rs/sentry/0.24.1/sentry/fn.apply_defaults.html +[integrations]: https://docs.rs/sentry/0.24.2/sentry/integrations/index.html +[apply_defaults]: https://docs.rs/sentry/0.24.2/sentry/fn.apply_defaults.html ## Minimal API @@ -55,8 +55,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.24.1/sentry/trait.Integration.html -[`Transport`]: https://docs.rs/sentry/0.24.1/sentry/trait.Transport.html +[`Integration`]: https://docs.rs/sentry/0.24.2/sentry/trait.Integration.html +[`Transport`]: https://docs.rs/sentry/0.24.2/sentry/trait.Transport.html [`sentry-core`]: https://crates.io/crates/sentry-core ## Features