You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AS-252] gateway: normalize root operation types in reporting
The federation spec allows your backends to use any name for their root
types (not just the standard Query/Mutation/Subscription) but the composed
schema will always use the standard names.
Both Apollo-maintained implementations of federated trace
reporting (apollo-engine-reporting and federation-jvm) include the backend's
potentially nonstandard name in the federated traces sent to the gateway. Then
the gateway continues to use those names in the traces it sends to AGM.
For example, one of AGM's own implementing services uses QueryRoot, so traces
produced by the gateway in front of it have `QueryRoot` on the traces despite
that type not actually being part of the composed schema.
The effect is that field stats (on the schema explorer) for all root fields are
empty!
Because normalizing root operation names is part of the federation spec, it
makes sense to keep the implementing services simple and fix this just once in
the gateway.
0 commit comments