-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
Enable Tracing in Apollo Studio #4
Comments
If you register this class using a |
I only now realize this issue is on the example app, and not on the framework itself. So yes, we should do exactly what I said in the previous reply for the example :-) |
Thanks @berngp and @paulbakker !
I was reading more about it in this https://www.apollographql.com/docs/federation/metrics/#gatsby-focus-wrapper and it looks like that it is not enough for apollo studio to make it work. Accordingly to their documentation they require an
|
I think we need to explicitly enable the feature in the Apollo Server. ref. #8 |
I tested this one but it is not enough to make it work. I need to find some time to try this project: https://github.com/braintree/apollo-tracing-uploader-java Thanks @berngp |
Finally I found the time to integrate the [Disclaimer: Not polished code] I had to add just one simple class like this one:
There is no documentation on how to integrate it. CC: @berngp @srinivasankavitha @paulbakker Last but not least: I also enabled the Do you think that would it be worth creating a dedicated module to integrate tracing with apollo or document this approach? |
It's a bit easier than that. What you need to do is first import this dependency (I'm using version 0.6.4):
Next, expose a bean of type: com.apollographql.federation.graphqljava.tracing.FederatedTracingInstrumentation For example as follows:
Now the DGS framework will pick up this bean and voila, tracing has been enabled in Apollo Studio. Check out a more complete working example here. |
I was playing with this demo and I noticed that the traces are not available.
Is there some parameter or does need to be implemented the exposure of the fields for the tracing?
Please check the apollo-tracing specification and the relative PR
GraphQL-Java-PR
The text was updated successfully, but these errors were encountered: