Closed
Description
When recording data fetcher observations, the GraphQlObservationInstrumentation
organizes the parent/child relationship between observations by setting the current observation under a well-known key in the global GraphQL context. In some cases, the order of execution and the scheduling of operations does not reflect the actual operation hierarchy as defined by the GraphQL ExecutionStepInfo
.
This results in traces where data fetching operations are set with incorrect parent/child relationships. We should instead use the ExecutionStepInfo
to ensure that the correct observation information is used.
Thanks @tkmax83 for providing a sample application.