Skip to content

Commit b53d849

Browse files
committed
improve
1 parent 1af8a8e commit b53d849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/rust/guides/axum/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ fn main() -> io::Result<()> {
6767

6868
let app = Router::new().route("/", get(failing)).layer(
6969
ServiceBuilder::new()
70-
// If you're binding the layers directly on the `Router`, bind them in the opposite order, otherwise you might run into a memory leak
7170
.layer(NewSentryLayer::<Request<Body>>::new_from_top()) // Bind a new Hub per request, to ensure correct error <> request correlation
7271
# ___PRODUCT_OPTION_START___ performance
7372
.layer(SentryHttpLayer::new().enable_transaction()), // Start a transaction (Sentry root span) for each request
73+
// If you're binding the layers directly on the `Router`, bind them in the opposite order, otherwise you might run into a memory leak
7474
# ___PRODUCT_OPTION_END___ performance
7575
);
7676

0 commit comments

Comments
 (0)