movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 55 forks source link

Inject execution debugging info into query plan #263

Closed lucianjon closed 2 months ago

lucianjon commented 2 months ago

As each step is completed, inject some information into the step that aids in debugging step failures and timing.

The information is accessed on the result object when the below request header is sent: X-Bramble-Debug: plan

lucianjon commented 2 months ago

Maybe this should be switched on based on timings being provided in the X-Bramble-Debug header

Yeah I considered that but I thought it was a bit unexpected injecting the entire plan when asking for timings.