Replies: 1 comment
-
|
Thanks for the detailed explanation. I think this makes sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the
gql.errorCodeandgql.errorDetailtags are extracted fromerror.extensions.errorTypeanderror.extensions.errorDetailfor generic GraphQLErrors in DgsGraphQLMetricsInstrumentation.While it's not strictly part of the GraphQL spec for error formatting, the example given on the spec, and the name of the tag itself would both suggest the key to look for in the
extensionsmap would becode. Apollo Server also usesextensions.code.At Indeed, most of our almost 200 federated subgraphs use Netflix DGS, but have standardized on using
extensions.codefor error codes. Some of our devs have complained that the tag values showing up in DataDog forgql.errorCodeandgql.errorDetailare alwaysunknownandnone. I would like to add a pull request to address where the DgsGraphQLMetricsInstrumentation.kt functionserrorTypeExtension()anderrorDetailExtension()are updated as follows:Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions