Currently, the ContextDataFetcherDecorator captures context values from the global GraphQLContext and set captured values in the execution context of the decorated DataFetcher. Each DataFetcher can also contribute additional context values by returning a DataFetcherResult containing a localContext that will be used when calling other DataFetcher lower in the hierarchy call.
We should ensure that ContextDataFetcherDecorator captures from both global and local GraphQLContext, if the latter is present. This requires a change in the context-propagation library, see micrometer-metrics/context-propagation#98.
Currently, the
ContextDataFetcherDecoratorcaptures context values from the globalGraphQLContextand set captured values in the execution context of the decoratedDataFetcher. EachDataFetchercan also contribute additional context values by returning aDataFetcherResultcontaining alocalContextthat will be used when calling otherDataFetcherlower in the hierarchy call.We should ensure that
ContextDataFetcherDecoratorcaptures from both global and localGraphQLContext, if the latter is present. This requires a change in the context-propagation library, see micrometer-metrics/context-propagation#98.