We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I encountered a perplexing issue where I was seeing doubled resolver spans when using the useOpenTelemetry plugin.
useOpenTelemetry
The cause was another plugin useDeferStream which calls the replaceSchema function in order to add some directives to the schema.
useDeferStream
replaceSchema
https://github.com/dotansimha/graphql-yoga/blob/82f5893446e3c55519194a1ca1d784120cbe7098/packages/plugins/defer-stream/src/index.ts#L37-L42
The issue isn't specific to useOpenTelemetry. Any plugin that calls addPlugin(useOnResolve... could potentially end up rewrapping resolvers.
addPlugin(useOnResolve...
The text was updated successfully, but these errors were encountered:
fix: prevent double-wrapping of field.resolve fixes n1ru4l#1772
59ed441
b9f0206
1940ea3
f5f4bc1
fix: prevent double-wrapping of field.resolve (#1773)
7066ce9
* fix: prevent double-wrapping of field.resolve fixes #1772 * fix: useOnResolve double-wrap prevention should be on field not field.resolve
Successfully merging a pull request may close this issue.
I encountered a perplexing issue where I was seeing doubled resolver spans when using the
useOpenTelemetry
plugin.The cause was another plugin
useDeferStream
which calls thereplaceSchema
function in order to add some directives to the schema.https://github.com/dotansimha/graphql-yoga/blob/82f5893446e3c55519194a1ca1d784120cbe7098/packages/plugins/defer-stream/src/index.ts#L37-L42
The issue isn't specific to useOpenTelemetry. Any plugin that calls
addPlugin(useOnResolve...
could potentially end up rewrapping resolvers.The text was updated successfully, but these errors were encountered: