Performance and diagnostics
Describes performance and diagnostics tools for Sitecore GraphQL.
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
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:
<performance ref="/sitecore/api/GraphQL/defaults/performance/debug" />