Is there a way to make Sentry integration work with FastAPI + SqlAlchemy + Strawberry setup? #3957
Unanswered
AlexanderKulia
asked this question in
Q&A
Replies: 2 comments
|
I think |
0 replies
|
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 |
0 replies
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.
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?
All reactions