You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This may be an issue with our implementation, but I'm having issues finding where this is happening or solutions in the documentation)
We have implemented SimplePerformantInstrumentation.instrumentExecutionResult to tag all resolved types, and then we post the tags to Datadog. This is helpful for us to know which results are being returned from our graph.
But if we have a union of types, then all union'd types are tagged instead of the concrete resolved type.
To Reproduce
Create a union of different types and a query (union UnionBarBaz = Bar | Baz)
Query the union'd type
See all union'd types are tagged
The text was updated successfully, but these errors were encountered:
You are coming in at the end of the processing to tag data and a field has a union type but fact that the graphql.schema.TypeResolver has resolved non concrete types to concrete types has been lost
the only way I see forward for you would be this
use graphql.schema.idl.WiringFactory#getTypeResolver(graphql.schema.idl.InterfaceWiringEnvironment) to provide a type resolve that can record somewhere that the resolved types are -
probably put that into GraphQLContext - probably under file type + field name say in a map
Then in your in instrumentResult - look in the GraphQLContext for the values you recorded earlier
Hello, this issue has been inactive for 60 days, so we're marking it as stale. If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.
Describe the bug
(This may be an issue with our implementation, but I'm having issues finding where this is happening or solutions in the documentation)
We have implemented
SimplePerformantInstrumentation.instrumentExecutionResult
to tag all resolved types, and then we post the tags to Datadog. This is helpful for us to know which results are being returned from our graph.But if we have a union of types, then all union'd types are tagged instead of the concrete resolved type.
To Reproduce
union UnionBarBaz = Bar | Baz
)The text was updated successfully, but these errors were encountered: