Skip to content

Commit ed093ad

Browse files
authored
Merge branch 'master' into lcian/feat/log-kv-clean
2 parents f5ce2a0 + f4245f1 commit ed093ad

File tree

26 files changed

+310
-121
lines changed

26 files changed

+310
-121
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.41.0
4+
5+
### Breaking changes
6+
7+
- feat(tracing): support combined EventFilters and EventMappings (#847) by @lcian
8+
- `EventFilter` has been changed to a `bitflags` struct.
9+
- 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`.
10+
- It's also possible to use `EventMapping::Combined` to map a `tracing` event to multiple items in Sentry.
11+
- `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.
12+
13+
### Features
14+
15+
- feat(core): emit debug log when calling capture_log but logs are disabled (#849) by @lcian
416

517
### Fixes
618

719
- fix(logs): stringify u64 attributes greater than `i64::MAX` (#846) by @lcian
820

21+
### Dependencies
22+
23+
- chore(deps): bump `anyhow` and disable its `backtrace` feature (#632) by @LunaBorowska
24+
925
## 0.40.0
1026

1127
### Breaking changes

Cargo.lock

Lines changed: 28 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.40.0"
3+
version = "0.41.0"
44
authors = ["Sentry <hello@sentry.io>"]
55
license = "MIT"
66
readme = "README.md"
@@ -20,7 +20,7 @@ release-health = ["sentry-core/release-health"]
2020
actix-web = { version = "4", default-features = false }
2121
bytes = "1.2"
2222
futures-util = { version = "0.3.5", default-features = false }
23-
sentry-core = { version = "0.40.0", path = "../sentry-core", default-features = false, features = [
23+
sentry-core = { version = "0.41.0", path = "../sentry-core", default-features = false, features = [
2424
"client",
2525
] }
2626
actix-http = "3.10"

sentry-anyhow/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sentry-anyhow"
3-
version = "0.40.0"
3+
version = "0.41.0"
44
authors = ["Sentry <hello@sentry.io>"]
55
license = "MIT"
66
readme = "README.md"
@@ -14,12 +14,12 @@ rust-version = "1.81"
1414

1515
[features]
1616
default = ["backtrace"]
17-
backtrace = ["anyhow/backtrace"]
17+
backtrace = []
1818

1919
[dependencies]
20-
sentry-backtrace = { version = "0.40.0", path = "../sentry-backtrace" }
21-
sentry-core = { version = "0.40.0", path = "../sentry-core" }
22-
anyhow = "1.0.39"
20+
sentry-backtrace = { version = "0.41.0", path = "../sentry-backtrace" }
21+
sentry-core = { version = "0.41.0", path = "../sentry-core" }
22+
anyhow = "1.0.77"
2323

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

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.40.0"
3+
version = "0.41.0"
44
authors = ["Sentry <hello@sentry.io>"]
55
license = "MIT"
66
readme = "README.md"
@@ -18,4 +18,4 @@ regex = { version = "1.5.5", default-features = false, features = [
1818
"std",
1919
"unicode-perl",
2020
] }
21-
sentry-core = { version = "0.40.0", path = "../sentry-core" }
21+
sentry-core = { version = "0.41.0", path = "../sentry-core" }

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.40.0"
3+
version = "0.41.0"
44
authors = ["Sentry <hello@sentry.io>"]
55
license = "MIT"
66
readme = "README.md"
@@ -14,7 +14,7 @@ edition = "2021"
1414
rust-version = "1.81"
1515

1616
[dependencies]
17-
sentry-core = { version = "0.40.0", path = "../sentry-core" }
17+
sentry-core = { version = "0.41.0", path = "../sentry-core" }
1818
libc = "0.2.66"
1919
hostname = "0.4"
2020

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.40.0"
3+
version = "0.41.0"
44
authors = ["Sentry <hello@sentry.io>"]
55
license = "MIT"
66
readme = "README.md"
@@ -29,7 +29,7 @@ logs = []
2929
[dependencies]
3030
log = { version = "0.4.8", optional = true, features = ["std"] }
3131
rand = { version = "0.9.0", optional = true }
32-
sentry-types = { version = "0.40.0", path = "../sentry-types" }
32+
sentry-types = { version = "0.41.0", path = "../sentry-types" }
3333
serde = { version = "1.0.104", features = ["derive"] }
3434
serde_json = { version = "1.0.46" }
3535
uuid = { version = "1.0.0", features = ["v4", "serde"], optional = true }

sentry-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ functionality.
9999
[Sentry]: https://sentry.io/
100100
[`sentry`]: https://crates.io/crates/sentry
101101
[Unified API]: https://develop.sentry.dev/sdk/unified-api/
102-
[`test`]: https://docs.rs/sentry-core/0.40.0/sentry_core/test/index.html
102+
[`test`]: https://docs.rs/sentry-core/0.41.0/sentry_core/test/index.html
103103

104104
## Resources
105105

sentry-core/src/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ impl Client {
464464
/// Captures a log and sends it to Sentry.
465465
#[cfg(feature = "logs")]
466466
pub fn capture_log(&self, log: Log, scope: &Scope) {
467-
if !self.options().enable_logs {
467+
if !self.options.enable_logs {
468+
sentry_debug!("[Client] called capture_log, but options.enable_logs is set to false");
468469
return;
469470
}
470471
if let Some(log) = self.prepare_log(log, scope) {

0 commit comments

Comments
 (0)