Skip to content

DataFetcher observations have incorrect hierarchy #676

Closed
@bclozel

Description

@bclozel

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues related to config and core supporttype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions