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
-
Currently, the
gql.errorCode
andgql.errorDetail
tags are extracted fromerror.extensions.errorType
anderror.extensions.errorDetail
for 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
extensions
map 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.code
for error codes. Some of our devs have complained that the tag values showing up in DataDog forgql.errorCode
andgql.errorDetail
are alwaysunknown
andnone
. 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