AsyncExitStackMiddleware middleware.starlette takes a lot of time #2188
Answered
by
Kludex
theobouwman
asked this question in
Potential Issue
-
I am monitoring my API with Sentry and noted that AsyncExitStackMiddleware takes a lot of time... Is this normal? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Jun 16, 2023
Replies: 2 comments 1 reply
-
That middleware is from FastAPI. 👀 Not sure why it says |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kludex
-
It's the teardown for your dependencies, e.g. closing/committing a database session. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That middleware is from FastAPI. 👀
Not sure why it says
starlette
on Sentry... 🤷♂️