Skip to content

Commit a8d822c

Browse files
committed
release: 0.24.1
1 parent 6ec32bc commit a8d822c

File tree

23 files changed

+182
-123
lines changed

23 files changed

+182
-123
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.24.1
44

55
**Breaking Changes**:
66

sentry-actix/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-actix"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,7 +12,7 @@ Sentry client extension for actix-web 3.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core", default-features = false }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core", default-features = false }
1616
actix-web = { version = "3", default-features = false }
1717
futures-util = { version = "0.3.5", default-features = false }
1818

sentry-actix/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ such as breadcrumbs do not work unless you bind the actix hub.
1717
## Example
1818

1919
```rust
20-
use std::env;
2120
use std::io;
2221

2322
use actix_web::{get, App, Error, HttpRequest, HttpServer};
24-
use sentry::Level;
2523

2624
#[get("/")]
2725
async fn failing(_req: HttpRequest) -> Result<String, Error> {
@@ -31,7 +29,7 @@ async fn failing(_req: HttpRequest) -> Result<String, Error> {
3129
#[actix_web::main]
3230
async fn main() -> io::Result<()> {
3331
let _guard = sentry::init(());
34-
env::set_var("RUST_BACKTRACE", "1");
32+
std::env::set_var("RUST_BACKTRACE", "1");
3533

3634
HttpServer::new(|| {
3735
App::new()
@@ -46,14 +44,27 @@ async fn main() -> io::Result<()> {
4644
}
4745
```
4846

47+
## Using Release Health
48+
49+
The actix middleware will automatically start a new session for each request
50+
when `auto_session_tracking` is enabled and the client is configured to
51+
use `SessionMode::Request`.
52+
53+
```rust
54+
let _sentry = sentry::init(sentry::ClientOptions {
55+
session_mode: sentry::SessionMode::Request,
56+
auto_session_tracking: true,
57+
..Default::default()
58+
});
59+
```
60+
4961
## Reusing the Hub
5062

51-
This integration will automatically update the current Hub instance. For example,
52-
the following will capture a message in the current request's Hub:
63+
This integration will automatically create a new per-request Hub from the main Hub, and update the
64+
current Hub instance. For example, the following will capture a message in the current request's Hub:
5365

5466
```rust
55-
use sentry::Level;
56-
sentry::capture_message("Something is not well", Level::Warning);
67+
sentry::capture_message("Something is not well", sentry::Level::Warning);
5768
```
5869

5970
## Resources

sentry-anyhow/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-anyhow"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -16,8 +16,8 @@ default = ["backtrace"]
1616
backtrace = ["anyhow/backtrace"]
1717

1818
[dependencies]
19-
sentry-backtrace = { version = "0.23.0", path = "../sentry-backtrace" }
20-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
19+
sentry-backtrace = { version = "0.24.1", path = "../sentry-backtrace" }
20+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
2121
anyhow = "1.0.39"
2222

2323
[dev-dependencies]

sentry-anyhow/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# sentry-anyhow
1+
<p align="center">
2+
<a href="https://sentry.io" target="_blank" align="center">
3+
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
4+
</a>
5+
</p>
6+
7+
# Sentry Rust SDK: sentry-anyhow
28

39
Adds support for capturing Sentry errors from [`anyhow::Error`].
410

@@ -36,11 +42,11 @@ if let Err(err) = function_that_might_fail() {
3642
The `backtrace` feature will enable the corresponding feature in anyhow and allow you to
3743
capture backtraces with your events. It is enabled by default.
3844

39-
## Resources
40-
41-
- [Discord](https://discord.gg/ez5KZN7) server for project discussions.
42-
- Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates.
43-
4445
[`anyhow::Error`]: https://docs.rs/anyhow/*/anyhow/struct.Error.html
4546

47+
## Resources
48+
4649
License: Apache-2.0
50+
51+
- [Discord](https://discord.gg/ez5KZN7) server for project discussions.
52+
- Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates

sentry-backtrace/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-backtrace"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,7 +12,7 @@ Sentry integration and utilities for dealing with stacktraces.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
1616
lazy_static = "1.4.0"
1717
backtrace = "0.3.44"
1818
regex = "1.3.4"

sentry-contexts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-contexts"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -13,7 +13,7 @@ build = "build.rs"
1313
edition = "2018"
1414

1515
[dependencies]
16-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
16+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
1717
libc = "0.2.66"
1818
hostname = "0.3.0"
1919

sentry-contexts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
# Sentry Rust SDK: sentry-contexts
88

9-
Adds Contexts to Sentry Events
9+
Adds Contexts to Sentry Events.
1010

1111
This integration is enabled by default in `sentry` and adds `device`, `os`
12-
and `rust` contexts to Events, as well as sets a `server_name` if not
12+
and `rust` contexts to Events, and also sets a `server_name` if it is not
1313
already defined.
1414

1515
See the [Contexts Interface] documentation for more info.

sentry-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-core"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -27,7 +27,7 @@ debug-logs = ["log_"]
2727
test = ["client"]
2828

2929
[dependencies]
30-
sentry-types = { version = "0.23.0", path = "../sentry-types" }
30+
sentry-types = { version = "0.24.1", path = "../sentry-types" }
3131
serde = { version = "1.0.104", features = ["derive"] }
3232
lazy_static = "1.4.0"
3333
rand = { version = "0.8.1", optional = true }

sentry-core/README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
# Sentry Rust SDK: sentry-core
88

9-
This crate provides the core of the [Sentry](https://sentry.io/) SDK, which
10-
can be used to log events and errors.
9+
This crate provides the core of the [Sentry] SDK, which can be used to log
10+
events and errors.
1111

12-
This crate is meant for integration authors and third party library authors
12+
`sentry-core` is meant for integration authors and third-party library authors
1313
that want to instrument their code for sentry.
1414

1515
Regular users who wish to integrate sentry into their applications should
16-
rather use the [`sentry`] crate, which comes with a default transport, and
16+
instead use the [`sentry`] crate, which comes with a default transport and
1717
a large set of integrations for various third-party libraries.
1818

1919
## Core Concepts
@@ -34,24 +34,25 @@ functionality.
3434

3535
## Features
3636

37-
* `feature = "client"`: Activates the [`Client`] type and certain
37+
- `feature = "client"`: Activates the [`Client`] type and certain
3838
[`Hub`] functionality.
39-
* `feature = "test"`: Activates the [`test`] module, which can be used to
39+
- `feature = "test"`: Activates the [`test`] module, which can be used to
4040
write integration tests. It comes with a test transport which can capture
4141
all sent events for inspection.
42-
* `feature = "debug-logs"`: Uses the `log` crate for debug output, instead
42+
- `feature = "debug-logs"`: Uses the `log` crate for debug output, instead
4343
of printing to `stderr`. This feature is **deprecated** and will be
4444
replaced by a dedicated log callback in the future.
4545

46+
[Sentry]: https://sentry.io/
4647
[`sentry`]: https://crates.io/crates/sentry
4748
[Unified API]: https://develop.sentry.dev/sdk/unified-api/
48-
[`Client`]: https://docs.rs/sentry-core/0.21.0/sentry_core/struct.Client.html
49-
[`Hub`]: https://docs.rs/sentry-core/0.21.0/sentry_core/struct.Hub.html
50-
[`Scope`]: https://docs.rs/sentry-core/0.21.0/sentry_core/struct.Scope.html
51-
[`Integration`]: https://docs.rs/sentry-core/0.21.0/sentry_core/trait.Integration.html
52-
[`Transport`]: https://docs.rs/sentry-core/0.21.0/sentry_core/trait.Transport.html
53-
[`TransportFactory`]: https://docs.rs/sentry-core/0.21.0/sentry_core/trait.TransportFactory.html
54-
[`test`]: https://docs.rs/sentry-core/0.21.0/sentry_core/test/index.html
49+
[`Client`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Client.html
50+
[`Hub`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Hub.html
51+
[`Scope`]: https://docs.rs/sentry-core/0.24.1/sentry_core/struct.Scope.html
52+
[`Integration`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.Integration.html
53+
[`Transport`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.Transport.html
54+
[`TransportFactory`]: https://docs.rs/sentry-core/0.24.1/sentry_core/trait.TransportFactory.html
55+
[`test`]: https://docs.rs/sentry-core/0.24.1/sentry_core/test/index.html
5556

5657
## Resources
5758

sentry-debug-images/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-debug-images"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,6 +12,6 @@ Sentry integration that adds the list of loaded libraries to events.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
1616
lazy_static = "1.4.0"
1717
findshlibs = "=0.10.2"

sentry-debug-images/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
# Sentry Rust SDK: sentry-debug-images
88

9-
The Sentry Debug Images Integration.
9+
The Sentry Debug Images integration.
1010

1111
The [`DebugImagesIntegration`] adds metadata about the loaded shared
1212
libraries to Sentry [`Event`]s.
1313

14-
This Integration only works on Unix-like OSs right now. Support for Windows
14+
This Integration only works on Unix-like OSes right now. Support for Windows
1515
will be added in the future.
1616

1717
## Configuration
@@ -25,7 +25,7 @@ let integration = sentry_debug_images::DebugImagesIntegration::new()
2525
.filter(|event| event.level >= Level::Warning);
2626
```
2727

28-
[`Event`]: https://docs.rs/sentry-debug-images/0.21.0/sentry_debug-images/sentry_core::protocol::Event
28+
[`Event`]: https://docs.rs/sentry-debug-images/0.24.1/sentry_debug-images/sentry_core::protocol::Event
2929

3030
## Resources
3131

sentry-log/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-log"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,7 +12,7 @@ Sentry integration for log and env_logger crates.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
1616
log = { version = "0.4.8", features = ["std"] }
1717

1818
[dev-dependencies]

sentry-log/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Adds support for automatic Breadcrumb and Event capturing from logs.
1010

1111
The `log` crate is supported in two ways. First, logs can be captured as
1212
breadcrumbs for later. Secondly, error logs can be captured as events to
13-
Sentry. By default anything above `Info` is recorded as breadcrumb and
13+
Sentry. By default anything above `Info` is recorded as a breadcrumb and
1414
anything above `Error` is captured as error event.
1515

1616
## Examples

sentry-panic/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-panic"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,8 +12,8 @@ Sentry integration for capturing panics.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
16-
sentry-backtrace = { version = "0.23.0", path = "../sentry-backtrace" }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
16+
sentry-backtrace = { version = "0.24.1", path = "../sentry-backtrace" }
1717

1818
[dev-dependencies]
1919
sentry = { path = "../sentry", default-features = false, features = ["test"] }

sentry-panic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Sentry Rust SDK: sentry-panic
88

9-
The Sentry Panic handler Integration.
9+
The Sentry Panic handler integration.
1010

1111
The `PanicIntegration`, which is enabled by default in `sentry`, installs a
1212
panic handler that will automatically dispatch all errors to Sentry that

sentry-slog/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-slog"
3-
version = "0.23.0"
3+
version = "0.24.1"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,7 +12,7 @@ Sentry integration for the slog crate.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.23.0", path = "../sentry-core" }
15+
sentry-core = { version = "0.24.1", path = "../sentry-core" }
1616
slog = { version = "2.5.2", features = ["nested-values"] }
1717
serde_json = "1.0.46"
1818

0 commit comments

Comments
 (0)