Our solution
Execution plans, returned in the response
Activate ART per request and the trace ships back inside extensions.trace. The Cosmo Playground renders the plan visually so you can see the structure at a glance.
What ART captures
A client sends a query with the X-WG-Trace header (or the wg_trace query parameter).
The router executes normally and captures the execution plan structure in detail.
Every fetch is recorded with its type: parallel, serial, entity, or batch.
Actual subgraph requests, input data, and output data are attached to each fetch.
Per-step timing covers planning and each load operation.
The trace is returned in the GraphQL response under extensions.trace and renders in the Cosmo Playground.
No code changes. Per-request header. Zero overhead on normal traffic.


