-
Notifications
You must be signed in to change notification settings - Fork 7
Add response error graphql properties #308
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
Conversation
schemas/rum/resource-schema.json
Outdated
}, | ||
"code": { | ||
"type": "string", | ||
"description": "Error code from GraphQL extensions", |
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.
💬 suggestion: IMO, mentioning GraphQL extensions can be a bit confusing here because it requires to be aware of this concept of the GraphQL spec, and it could easily be misunderstood with the extension concept we have at SDK level.
I think we could:
- Not mention it at all,
"Error code"
- Not mention GraphQL extension,
"Error code (used by some providers)"
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.
Sounds good ! I would prefer the second one as it is not always present. (to inform customers why it's not there)
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.
LGTM
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.
LGTM
Add new properties for the following support for graphql response tracking.
Note : The code property is not native but taken from the extension field and move at the top level. As we would like to query directly :
@resource.[…].errors.code:xxx
. It is present in the spec as a field in the extension part, so it could be manually added by the customers but also some libraries such as Apollo directly provide it in the response. (see Documentation)See the spec for more informations about the graphql response format : GraphQL Spec