Skip to content

Commit abedcc8

Browse files
committed
release: 0.25.0
1 parent 761e27c commit abedcc8

File tree

20 files changed

+84
-69
lines changed

20 files changed

+84
-69
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.25.0
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.24.3"
3+
version = "0.25.0"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -14,7 +14,7 @@ edition = "2018"
1414
[dependencies]
1515
actix-web = { version = "4", default-features = false }
1616
futures-util = { version = "0.3.5", default-features = false }
17-
sentry-core = { version = "0.24.3", path = "../sentry-core", default-features = false, features = ["client"] }
17+
sentry-core = { version = "0.25.0", path = "../sentry-core", default-features = false, features = ["client"] }
1818

1919
[dev-dependencies]
2020
actix-web = { version = "4" }

sentry-actix/README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,26 @@ async fn failing(_req: HttpRequest) -> Result<String, Error> {
2626
Err(io::Error::new(io::ErrorKind::Other, "An error happens here").into())
2727
}
2828

29-
#[actix_web::main]
30-
async fn main() -> io::Result<()> {
31-
let _guard = sentry::init(());
29+
fn main() -> io::Result<()> {
30+
let _guard = sentry::init(sentry::ClientOptions {
31+
release: sentry::release_name!(),
32+
..Default::default()
33+
});
3234
std::env::set_var("RUST_BACKTRACE", "1");
3335

34-
HttpServer::new(|| {
35-
App::new()
36-
.wrap(sentry_actix::Sentry::new())
37-
.service(failing)
36+
let runtime = tokio::runtime::Builder::new_multi_thread()
37+
.enable_all()
38+
.build()?;
39+
runtime.block_on(async move {
40+
HttpServer::new(|| {
41+
App::new()
42+
.wrap(sentry_actix::Sentry::new())
43+
.service(failing)
44+
})
45+
.bind("127.0.0.1:3001")?
46+
.run()
47+
.await
3848
})
39-
.bind("127.0.0.1:3001")?
40-
.run()
41-
.await?;
42-
43-
Ok(())
4449
}
4550
```
4651

@@ -52,6 +57,7 @@ use `SessionMode::Request`.
5257

5358
```rust
5459
let _sentry = sentry::init(sentry::ClientOptions {
60+
release: sentry::release_name!(),
5561
session_mode: sentry::SessionMode::Request,
5662
auto_session_tracking: true,
5763
..Default::default()

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-backtrace" }
20-
sentry-core = { version = "0.24.3", path = "../sentry-core" }
19+
sentry-backtrace = { version = "0.25.0", path = "../sentry-backtrace" }
20+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
2121
anyhow = "1.0.39"
2222

2323
[dev-dependencies]

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
15+
sentry-core = { version = "0.25.0", 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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
16+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
1717
libc = "0.2.66"
1818
hostname = "0.3.0"
1919

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-types" }
30+
sentry-types = { version = "0.25.0", 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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ functionality.
4646
[Sentry]: https://sentry.io/
4747
[`sentry`]: https://crates.io/crates/sentry
4848
[Unified API]: https://develop.sentry.dev/sdk/unified-api/
49-
[`Client`]: https://docs.rs/sentry-core/0.24.3/sentry_core/struct.Client.html
50-
[`Hub`]: https://docs.rs/sentry-core/0.24.3/sentry_core/struct.Hub.html
51-
[`Scope`]: https://docs.rs/sentry-core/0.24.3/sentry_core/struct.Scope.html
52-
[`Integration`]: https://docs.rs/sentry-core/0.24.3/sentry_core/trait.Integration.html
53-
[`Transport`]: https://docs.rs/sentry-core/0.24.3/sentry_core/trait.Transport.html
54-
[`TransportFactory`]: https://docs.rs/sentry-core/0.24.3/sentry_core/trait.TransportFactory.html
55-
[`test`]: https://docs.rs/sentry-core/0.24.3/sentry_core/test/index.html
49+
[`Client`]: https://docs.rs/sentry-core/0.25.0/sentry_core/struct.Client.html
50+
[`Hub`]: https://docs.rs/sentry-core/0.25.0/sentry_core/struct.Hub.html
51+
[`Scope`]: https://docs.rs/sentry-core/0.25.0/sentry_core/struct.Scope.html
52+
[`Integration`]: https://docs.rs/sentry-core/0.25.0/sentry_core/trait.Integration.html
53+
[`Transport`]: https://docs.rs/sentry-core/0.25.0/sentry_core/trait.Transport.html
54+
[`TransportFactory`]: https://docs.rs/sentry-core/0.25.0/sentry_core/trait.TransportFactory.html
55+
[`test`]: https://docs.rs/sentry-core/0.25.0/sentry_core/test/index.html
5656

5757
## Resources
5858

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
15+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
1616
lazy_static = "1.4.0"
1717
findshlibs = "=0.10.2"

sentry-debug-images/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.24.3/sentry_debug-images/sentry_core::protocol::Event
28+
[`Event`]: https://docs.rs/sentry-debug-images/0.25.0/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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
15+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
1616
log = { version = "0.4.8", features = ["std"] }
1717

1818
[dev-dependencies]

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
16-
sentry-backtrace = { version = "0.24.3", path = "../sentry-backtrace" }
15+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
16+
sentry-backtrace = { version = "0.25.0", path = "../sentry-backtrace" }
1717

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

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.24.3"
3+
version = "0.25.0"
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.24.3", path = "../sentry-core" }
15+
sentry-core = { version = "0.25.0", path = "../sentry-core" }
1616
slog = { version = "2.5.2", features = ["nested-values"] }
1717
serde_json = "1.0.46"
1818

sentry-tower/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-tower"
3-
version = "0.24.3"
3+
version = "0.25.0"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -19,7 +19,7 @@ tower-layer = "0.3"
1919
tower-service = "0.3"
2020
http_ = { package = "http", version = "0.2.6", optional = true }
2121
pin-project = { version = "1.0.10", optional = true }
22-
sentry-core = { version = "0.24.3", path = "../sentry-core", default-features = false, features = ["client"] }
22+
sentry-core = { version = "0.25.0", path = "../sentry-core", default-features = false, features = ["client"] }
2323

2424
[dev-dependencies]
2525
anyhow = "1"

sentry-tower/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,25 @@ let service = ServiceBuilder::new()
6363
When using Tonic, the layer can be used directly by the Tonic stack:
6464

6565
```rust
66+
use hello_world::{greeter_server::*, *};
6667
use sentry_tower::NewSentryLayer;
67-
use hello_world::{*, greeter_server::*};
6868

6969
struct GreeterService;
7070

7171
#[tonic::async_trait]
7272
impl Greeter for GreeterService {
73-
async fn say_hello(&self, req: Request<HelloRequest>) -> Result<Response<HelloReply>, Status> {
73+
async fn say_hello(
74+
&self,
75+
req: Request<HelloRequest>,
76+
) -> Result<Response<HelloReply>, Status> {
7477
let HelloRequest { name } = req.into_inner();
7578
if name == "world" {
7679
capture_anyhow(&anyhow!("Trying to greet a planet"));
7780
return Err(Status::invalid_argument("Cannot greet a planet"));
7881
}
79-
Ok(Response::new(HelloReply { message: format!("Hello {}", name) }))
82+
Ok(Response::new(HelloReply {
83+
message: format!("Hello {}", name),
84+
}))
8085
}
8186
}
8287

@@ -93,6 +98,12 @@ The `http` feature offers another layer which will attach request details
9398
onto captured events, and optionally start a new performance monitoring
9499
transaction based on the incoming HTTP headers.
95100

101+
The created transaction will automatically use the request URI as its name.
102+
This is sometimes not desirable in case the request URI contains unique IDs
103+
or similar. In this case, users should manually override the transaction name
104+
in the request handler using the [`Scope::set_transaction`](https://docs.rs/sentry-tower/0.25.0/sentry_tower/sentry_core::Scope::set_transaction)
105+
method.
106+
96107
When combining both layers, take care of the ordering of both. For example
97108
with [`tower::ServiceBuilder`], always define the `Hub` layer before the `Http`
98109
one, like so:

sentry-tracing/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-tracing"
3-
version = "0.24.3"
3+
version = "0.25.0"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -12,7 +12,7 @@ Sentry integration for tracing and tracing-subscriber crates.
1212
edition = "2018"
1313

1414
[dependencies]
15-
sentry-core = { version = "0.24.3", path = "../sentry-core", features = ["client"] }
15+
sentry-core = { version = "0.25.0", path = "../sentry-core", features = ["client"] }
1616
tracing-core = "0.1"
1717
tracing-subscriber = { version = "0.3.1", default-features = false, features = ["std"] }
1818

sentry-tracing/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ let layer = sentry_tracing::layer().event_filter(|md| match md.level() {
8181
_ => EventFilter::Ignore,
8282
});
8383

84-
tracing_subscriber::registry()
85-
.with(layer)
86-
.init();
84+
tracing_subscriber::registry().with(layer).init();
8785
```
8886

8987
## Resources

sentry-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-types"
3-
version = "0.24.3"
3+
version = "0.25.0"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"

sentry/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry"
3-
version = "0.24.3"
3+
version = "0.25.0"
44
authors = ["Sentry <[email protected]>"]
55
license = "Apache-2.0"
66
readme = "README.md"
@@ -48,16 +48,16 @@ ureq = ["ureq_/tls", "httpdate"]
4848
ureq-native-tls = ["ureq_/native-tls", "httpdate"]
4949

5050
[dependencies]
51-
sentry-core = { version = "0.24.3", path = "../sentry-core", features = ["client"] }
52-
sentry-anyhow = { version = "0.24.3", path = "../sentry-anyhow", optional = true }
53-
sentry-backtrace = { version = "0.24.3", path = "../sentry-backtrace", optional = true }
54-
sentry-contexts = { version = "0.24.3", path = "../sentry-contexts", optional = true }
55-
sentry-debug-images = { version = "0.24.3", path = "../sentry-debug-images", optional = true }
56-
sentry-log = { version = "0.24.3", path = "../sentry-log", optional = true }
57-
sentry-panic = { version = "0.24.3", path = "../sentry-panic", optional = true }
58-
sentry-slog = { version = "0.24.3", path = "../sentry-slog", optional = true }
59-
sentry-tower = { version = "0.24.3", path = "../sentry-tower", optional = true }
60-
sentry-tracing = { version = "0.24.3", path = "../sentry-tracing", optional = true }
51+
sentry-core = { version = "0.25.0", path = "../sentry-core", features = ["client"] }
52+
sentry-anyhow = { version = "0.25.0", path = "../sentry-anyhow", optional = true }
53+
sentry-backtrace = { version = "0.25.0", path = "../sentry-backtrace", optional = true }
54+
sentry-contexts = { version = "0.25.0", path = "../sentry-contexts", optional = true }
55+
sentry-debug-images = { version = "0.25.0", path = "../sentry-debug-images", optional = true }
56+
sentry-log = { version = "0.25.0", path = "../sentry-log", optional = true }
57+
sentry-panic = { version = "0.25.0", path = "../sentry-panic", optional = true }
58+
sentry-slog = { version = "0.25.0", path = "../sentry-slog", optional = true }
59+
sentry-tower = { version = "0.25.0", path = "../sentry-tower", optional = true }
60+
sentry-tracing = { version = "0.25.0", path = "../sentry-tracing", optional = true }
6161
log_ = { package = "log", version = "0.4.8", optional = true, features = ["std"] }
6262
reqwest_ = { package = "reqwest", version = "0.11", optional = true, features = ["blocking", "json"], default-features = false }
6363
curl_ = { package = "curl", version = "0.4.25", optional = true }

0 commit comments

Comments
 (0)