From 46bb1189f5a7e4955f42e7679b1ee654367eab00 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 30 Jul 2025 14:25:52 +0200 Subject: [PATCH] Replace usage of deprecated SentryHttpLayer::with_transaction --- crates/cli/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/server.rs b/crates/cli/src/server.rs index c61c1090f..ec3c2ddd7 100644 --- a/crates/cli/src/server.rs +++ b/crates/cli/src/server.rs @@ -333,7 +333,7 @@ pub fn build_router( // which is the other way around compared to `tower::ServiceBuilder`. // So even if the Sentry docs has an example that does // 'NewSentryHttpLayer then SentryHttpLayer', we must do the opposite. - .layer(SentryHttpLayer::with_transaction()) + .layer(SentryHttpLayer::new().enable_transaction()) .layer(NewSentryLayer::new_from_top()) .with_state(state) }