Skip to main content
Version: 0.11.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: 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],
)

Note: If you are using WSGI, use ApolloTracingExtensionSync in place of ApolloTracingExtension.