Performance and diagnostics

Current version: 21.x

Sitecore GraphQL has diagnostics features that help you diagnose API performance issues. They include capturing query timings, logging every query received with per-resolver function timing data, and more.

The default performance settings keep aggregate query statistics (average and worst execution time) for each endpoint in $endpoint/stats.

GraphQL ships with three performance presets with varying levels of detail. They are defined in /App_Config/Sitecore/Services.GraphQL/Sitecore.Services.GraphQL.config, and they are documented in this file. You swap a performance preset by changing the value of ref in the <performance> element under your GraphQL endpoint configuration. For example:

RequestResponse
<performance ref="/sitecore/api/GraphQL/defaults/performance/debug" />

Do you have some feedback for us?

If you have suggestions for improving this article,