- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13
adds traces for dataloaders #33
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
base: pse/initial-spec-definition
Are you sure you want to change the base?
Conversation
| The span SHOULD be a child of the span that initiated the batch loading, | ||
| which is typically a resolver execution span. | 
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.
You probably already discussed this during the meeting, but I'm not sure to understand this part.
What does "initiated the batch loading" ? Is it the last or the first resolver that called this DataLoader ?
And this means that other resolvers spans will not have anything to do with this span. Should we specify that the DataLoader span should be linked to every resolver spans involved in the batch ? Because a common need is to being able to track down which resolver triggered a DataLoader batch.
| The span SHOULD be a child of the span that initiated the batch loading, | ||
| which is typically a resolver execution span. | ||
| attributes: | 
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.
I think that would be useful to also know the number of cache miss/hit isn't it ?
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.
Should DataLoader even be under the graphql scope? It's generally useful, you can use it with or without GraphQL.
| @benjie Fair point. They can technically be used outside of GraphQL - yet they rarely are. At least I've only seen usecases outside of the GraphQL execution by people working with a GraphQL server somewhere else in the application. I grouped them under the  | 
No description provided.