Skip to content

Commit 2d084f2

Browse files
authored
feat(actix): mention that middleware should be applied last (#14528)
1 parent 6352f2c commit 2d084f2

File tree

1 file changed

+1
-0
lines changed
  • docs/platforms/rust/guides/actix-web

1 file changed

+1
-0
lines changed

docs/platforms/rust/guides/actix-web/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sentry = { version = "{{@inject packages.version('sentry.rust') }}", features =
2222

2323
Initialize and configure the Sentry client. This will enable a set of default integrations, such as panic reporting.
2424
Then, initialize Actix Web with the Sentry middleware.
25+
The Sentry middleware provides correct request and trace association for any captured errors or panics, so it should be the first to process the request, that means it should be the last in your chain of `wrap` calls.
2526

2627
<Alert level="warning">
2728

0 commit comments

Comments
 (0)