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_KEYenvironment variable (
ENGINE_API_KEYprior 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: