When I previously built an Apollo GraphQL server, I had integrated it with the Apollo Studio (formerly Graph Manager) and it did some nice daily reporting on the free plan. It would be nice if it was possible to tie Dgraph’s GraphQL endpoint to this service.
I am not sure of the magic that Dgraph uses to generate the graphql endpoint, but if it natively uses Apollo Server then connecting it to Apollo Studio would be simply providing an environment variable with a user’s API key from Apollo Studio.
Apollo Server has built-in support for pushing traces to Apollo Studio. To set it up, you provide it a graph API key from Studio.
After you obtain a graph API key, assign it to the APOLLO_KEY environment variable ( ENGINE_API_KEY prior to version 2.13.0 of Apollo Server) in your production server’s environment.
Now the next time you start your production server, it will automatically begin pushing trace data to Studio:
I think it would be nice to consider adding some more integrations like this. If this is something that’s really needed for you, can you add a github issue that clearly explains what the requirements are and we’ll consider adding it to the roadmap.