Is there a way to make Sentry integration work with FastAPI + SqlAlchemy + Strawberry setup? #3957
Replies: 2 comments
-
I think |
Beta Was this translation helpful? Give feedback.
-
the root cause seems to be having the FastAPI app and Strawberry schema in different files. such setup produces the following trace (see screenshot). ![]() Repo with reproduction https://github.com/AlexanderKulia/strawberry-sentry-integration-issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I use Strawberry as a FastAPI router instead of a standalone framework, Sentry integration does not correctly instrument the GraphQL router
This is how it looks when

app.include_router(graphql_app, prefix="/graphql")
is used. "No Instrumentation" is not helpfulThis is how it looks when Strawberry is used as standalone

Has anyone encountered this issue?
Beta Was this translation helpful? Give feedback.
All reactions