Skip to main content

Analyse GraphQL performance

Find MoJ data communicates with the Datahub backend via its GraphQL API.

There are several sources of information that can be used to analyse performance.

Sentry

The trace view in sentry visualises the timeline of a request to Find MoJ data. It will tell you how much time in spent on GraphQL queries when processing the request.

Traces can be filtered by view, for example /search requests.

Kibana

All our logs are sent to Kibana. The logs for Datahub’s GraphQL controller provide data on how long individual queries take.

Kibana logs for GraphQLController

GraphiQL Console

The Datahub UI exposes the GraphiQL console, which is useful for testing GraphQL queries.

View the source code for the Find MoJ data queries in Github.

To check the execution time of a query:

  • login to Datahub
  • go to the GraphiQL console
  • add the query
  • open the browser debug toolbar and switching to the network tab
  • hit the red run button in the top right
This page was last reviewed on 19 December 2024. It needs to be reviewed again on 19 June 2025 by the page owner #data-catalogue .
This page was set to be reviewed before 19 June 2025 by the page owner #data-catalogue. This might mean the content is out of date.