-
Notifications
You must be signed in to change notification settings - Fork 326
adding tracing instrumentation #52
Comments
The |
Hi @apottere, and I also provide the bean, I'll try to include some detail of my sample code : my schema only contain
my request : Is there anything else that i missed ? |
No, that should work. Is it injecting the InstrumentationProvider into your servlet? |
Hi @apottere , I think it suppose to provide the InstrumentationProvider bean to the servlet, but as i see in the documentation, http://graphql-java.readthedocs.io/en/v6/instrumentation.html The instrumentation should be set into the GraphQL object, that's why at first i tried to create the bean for GraphQL object, but since the GraphQL object is request-scoped, i'm not sure how to add it. |
The |
Hi @apottere, I'm still unable to provide the TracingInstrumentation to the GraphQL object. could you give me example of how to injecting the Instrumentatio Provider? Thank you |
Sorry, I was mistaken - you can just add your instrumentation as a bean and it should be picked up:
|
hi @apottere , Did that work for you ? |
Yes, I tried it in an example project and hit a breakpoint in the TracingInstrumentation |
Hi @apottere Yes, I also tried to debug and hit a breakpoint at GraphQLWebAutoConfiguration which the Tracing Instrumentation has been added to GraphQLServlet bean. |
Fixed, |
Hi @apottere , can this be found in any documentation? are there any detailed documents about which beans can be injected to Spring? Thanks. |
Hi, correct me if I'm wrong.
With the graphql-spring-boot-starter, it will handle the bean creation for these object : GraphQL ,GraphQLSchema, SchemaParser, etc.
and I'm interested with the tracing instrumentation (http://graphql-java.readthedocs.io/en/v6/instrumentation.html) which add TracingInstrumentation to the GraphQL object
I tried to add the tracing instrumentation to my GraphQL object but there's no change to my response
here is how I try to add the TracingInstrumentation object to my GraphQL object
`
@SpringBootApplication
public class DemographqlApplication {
}`
Am I missing something here ?
Thank you
The text was updated successfully, but these errors were encountered: