Skip to content

Commit 46bb118

Browse files
committed
Replace usage of deprecated SentryHttpLayer::with_transaction
1 parent 046f3a2 commit 46bb118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
}

0 commit comments

Comments
 (0)