Why latest versions of sentry-sdk don't use a middleware in their fastapi integration #2077
Unanswered
nambrosini-codes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Previously, with the generic asgi support, sentry added a middleware and that's how it reported to sentry. Now the fastapi integration monkeypatches the request handler.
Is there a limitation on the asgi middleware spec that caused this change?
I would like to understand why the middleware approach was dropped in favour of the new one as it becomes harder to test behaviour when sentry is enabled but i'm sure there are valid reasons for it
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions