Apollo Tracing exposes basic performance data of GraphQL queries: Query execution time and execution time of individual resolvers. Ariadne has GraphQL extension that includes this data in the JSON returned by the server after completing the query.
Note: Extensions are only supported by the asynchronous executor (
ariadne.graphql) and ASGI application (
Note: for performance reasons Apollo Tracing extension excludes default resolvers.
Enabling Apollo Tracing in the API
To enable Apollo Tracing in your API, import the
ApolloTracingExtension class from
ariadne.contrib.tracing.apollotracing and pass it to your server
from ariadne.contrib.tracing.apollotracing import ApolloTracingExtension app = GraphQL( schema, debug=True, extensions=[ApolloTracingExtension], )