-
Notifications
You must be signed in to change notification settings - Fork 299
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
DataFetcher observations have incorrect hierarchy #676
Comments
Reopening as the fix is incomplete. In this case, we should probably use the |
Reopening as the instrumentation breaks the data fetchers that return |
Prior to this commit, gh-676 fixed the local and global context inheritance in the `ContextDataFetcherDecorator` with a workaround. This commit undoes this workaround and uses the new Context Propagation API for this, effectively raising the requirement for version 1.0.3 and removing all deprecated APIs in the meantime. Closes gh-688
Prior to this commit, spring-projectsgh-676 fixed the local and global context inheritance in the `ContextDataFetcherDecorator` with a workaround. This commit undoes this workaround and uses the new Context Propagation API for this, effectively raising the requirement for version 1.0.3 and removing all deprecated APIs in the meantime. Closes spring-projectsgh-688
Prior to this commit, gh-676 fixed the local and global context inheritance in the `ContextDataFetcherDecorator` with a workaround. This commit undoes this workaround and uses the new Context Propagation API for this, effectively raising the requirement for version 1.0.3 and removing all deprecated APIs in the meantime. Closes gh-688
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 GraphQLExecutionStepInfo
.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.
The text was updated successfully, but these errors were encountered: