Skip to content
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/graph-gophers/graphql-go: Add WithOmitTrivial option. #715

Merged
merged 1 commit into from
Sep 1, 2020
Merged

contrib/graph-gophers/graphql-go: Add WithOmitTrivial option. #715

merged 1 commit into from
Sep 1, 2020

Conversation

cube2222
Copy link
Contributor

@cube2222 cube2222 commented Sep 1, 2020

Trivial fields are fields implemented by methods which can't return an error, they are usually just structure field reads. See the test.

With big object listings, the traces get very unreadable if you print a span for each field of each object.

In our use cases, this often reduces span counts in a trace by an order of magnitude.

Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this. While contributions are welcome, please remember to read our contribution guidelines before starting to write code for a PR. Generally new additions to the code have to first be discussed in an issue. Please take this into consideration for the future.

The change is fine by me.

contrib/graph-gophers/graphql-go/graphql.go Outdated Show resolved Hide resolved
contrib/graph-gophers/graphql-go/graphql_test.go Outdated Show resolved Hide resolved
@gbbr gbbr added this to the 1.27.0 milestone Sep 1, 2020
@gbbr gbbr added the apm:ecosystem contrib/* related feature requests or bugs label Sep 1, 2020
@cube2222
Copy link
Contributor Author

cube2222 commented Sep 1, 2020

Thanks for the quick response! Sorry, I'll keep the guidelines in mind in the future.

Should be all ready now.

Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks!

@gbbr gbbr merged commit dff70cd into DataDog:v1 Sep 1, 2020
mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants