-
Notifications
You must be signed in to change notification settings - Fork 439
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
contrib/99designs/gqlgen: additional options to reduce noise #2695
contrib/99designs/gqlgen: additional options to reduce noise #2695
Conversation
Trivial: !(fieldCtx.IsMethod || fieldCtx.IsResolver), // TODO: Is this accurate? | ||
Trivial: isTrivial, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Is this accurate?
Seems like it to me:
Alternate naming: |
How about What else remains to settle in order to merge this patch? |
Can push tomorrow.
Nothing but review, as far as I'm aware. |
@darccio I was just signing on for the day; did you have any opinion on the naming? |
Being honest, I would drop the |
Agreed, but had simply been trying to follow other patterns existing elsewhere in the repo; pushed to shorten these by removing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Just a small change to keep the existing options naming convention.
Thanks for the review @rarguelloF; should be good to go now 👍 |
Thanks! |
What does this PR do?
Adds two new configuration options to
contrib/99designs/gqlgen
, which have a similar end goal of reducing noise:SkipFieldsForIntrospectionQuery
OperationName
isIntrospectionQuery
, spans are not created for each fieldSkipFieldsWithTrivialResolver
Motivation
We started using
contrib/99designs/gqlgen
middleware recently and noticed it creates way more spans than we intended, most of which have little value for our needs.Fixes #2684. Fixes #2610.
Reviewer's Checklist
Unsure? Have a question? Request a review!