Skip to main content
Version: 0.6.0

Apollo Tracing

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 (ariadne.asgi.GraphQL).

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 extensions option:

from ariadne.contrib.tracing.apollotracing import ApolloTracingExtension

app = GraphQL(
schema,
debug=True,
extensions=[ApolloTracingExtension],
)