Replies: 1 comment
-
@odannyc Did you figure out a workaround for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to have the ability to create a new
context.Context
per resolver and pass it in.My current issue is that I used
newrelic
to instrument different things in my application, for example if I want to call an external HTTP service I used thectx
that's passed to my resolver. The issue here is that newrelic requires thectx
to include a brand new new relic "transaction" object if the code that is instrumentation is running inside of a goroutine - and to the best of my knowledge it seems that all gqlgen resolvers run inside of go routines. So I'd like the ability to create some sort of hookBeforeResolver
middleware to add to the context before the resolver gets called.Beta Was this translation helpful? Give feedback.
All reactions