-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GrapheneIntegration: Enhance Transaction Naming for Errors in Graphene GraphQL Operations #2765
Comments
Hey @czyber thanks for writing in. What Version of the SDK are you using? |
I used 1.40.0 for the above example |
Hey @czyber, I'm not sure if we should rename the transaction -- the transaction is coming from the WSGI integration. (We should also not create a separate transaction because nested transactions are not supported.) What we do in a similar case (strawberry-graphql) is leave the WSGI transaction as is, but create a child span with all the important GraphQL data:
|
This commit adds a span for a graphql operation to the graphene integration
Hi @sentrivana, i think creating a child span should be sufficient for most cases. After thinking a bit about it, setting the transaction name of the wsgi integration is really not the way 😅 I added a child span, analogous to the way it is done for |
Thanks @czyber, we will take a look! |
This commit adds a span for a graphql operation to the graphene integration
This commit adds a span for a graphql operation to the graphene integration
Hey @czyber ! We are really not the fastest at looking at contributions right now. (didnt know you also did some graphene contributions) Is this the change you want to contribute: master...czyber:sentry-python:feature/add-graphene-child-span (could you update your branch to the lastest sentry master and create a PR? or if there is already one, please link me to it) |
This commit adds a span for a GraphQL operation to the graphene integration. Fixes #2765 --------- Co-authored-by: Anton Pirker <anton@ignaz.at> Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
This commit adds a span for a GraphQL operation to the graphene integration. Fixes getsentry#2765 --------- Co-authored-by: Anton Pirker <anton@ignaz.at> Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
Problem Statement
Currently when an exception or error occurs during the processing of a GraphQL operation by Graphene, the transaction name assigned to the reported issue is often not as descriptive as it could be. This lack of specificity in the transaction naming makes it challenging to quickly identify and address the source of the problem, and there are already existing workarounds such as described in this article.
Solution Brainstorm
Setting the transaction name of the current scope to the operation type and the operation name, would add more meaning to the issues, and one could see which operation was called at first glance.
This should be just a small change - i'm happy to do it 😄
The text was updated successfully, but these errors were encountered: