Skip to content

Commit a995d92

Browse files
authored
Upgrade Sentry to 0.42.0 (element-hq#4844)
2 parents a6b8d56 + 46bb118 commit a995d92

File tree

5 files changed

+44
-47
lines changed

5 files changed

+44
-47
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,18 +572,18 @@ features = [
572572

573573
# Sentry error tracking
574574
[workspace.dependencies.sentry]
575-
version = "0.37.0"
575+
version = "0.42.0"
576576
default-features = false
577577
features = ["backtrace", "contexts", "panic", "tower", "reqwest"]
578578

579579
# Sentry tower layer
580580
[workspace.dependencies.sentry-tower]
581-
version = "0.37.0"
581+
version = "0.42.0"
582582
features = ["http", "axum-matched-path"]
583583

584584
# Sentry tracing integration
585585
[workspace.dependencies.sentry-tracing]
586-
version = "0.37.0"
586+
version = "0.42.0"
587587

588588
# Serialization and deserialization
589589
[workspace.dependencies.serde]
@@ -645,7 +645,7 @@ features = [
645645
version = "2.0.12"
646646

647647
[workspace.dependencies.thiserror-ext]
648-
version = "0.2.1"
648+
version = "0.3.0"
649649

650650
# Async runtime
651651
[workspace.dependencies.tokio]

crates/cli/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ async fn try_main() -> anyhow::Result<ExitCode> {
128128
release: Some(VERSION.into()),
129129
sample_rate: telemetry_config.sentry.sample_rate.unwrap_or(1.0),
130130
traces_sample_rate: telemetry_config.sentry.traces_sample_rate.unwrap_or(0.0),
131-
auto_session_tracking: true,
132-
session_mode: sentry::SessionMode::Request,
133131
..Default::default()
134132
},
135133
));

crates/cli/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ pub fn build_router(
333333
// which is the other way around compared to `tower::ServiceBuilder`.
334334
// So even if the Sentry docs has an example that does
335335
// 'NewSentryHttpLayer then SentryHttpLayer', we must do the opposite.
336-
.layer(SentryHttpLayer::with_transaction())
336+
.layer(SentryHttpLayer::new().enable_transaction())
337337
.layer(NewSentryLayer::new_from_top())
338338
.with_state(state)
339339
}

deny.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ multiple-versions = "deny"
6060
skip = [
6161
{ name = "regex-syntax", version = "0.6.29" }, # tracing-subscriber[env-filter] -> matchers depends on the old version
6262
{ name = "regex-automata", version = "0.1.10" }, # ^
63-
{ name = "itertools", version = "0.12.1" }, # otel -> prost depends on this old version
6463
{ name = "itertools", version = "0.13.0" }, # zxcvbn depends on this old version
6564
{ name = "indexmap", version = "1.9.3" }, # schemars depends on this old version
6665
{ name = "hashbrown", version = "0.12.3" }, # schemars -> indexmap depends on this old version

0 commit comments

Comments
 (0)