Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query planner metrics #4817

Open
BrynCooke opened this issue Mar 18, 2024 · 1 comment
Open

Query planner metrics #4817

BrynCooke opened this issue Mar 18, 2024 · 1 comment
Labels
component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it. raised by user

Comments

@BrynCooke
Copy link
Contributor

Add a selector to allow displaying metrics about query plans. Metrics should be accessible via context so that we can write a selector to obtain

  • depth
  • breadth
  • anything else that is useful
@smyrick
Copy link
Member

smyrick commented Mar 18, 2024

This would be really helpful for another large customer. We are tuning with APOLLO_FEDERATION_DEBUG=true when there is lots of use with @shareable it would also be maybe helpful to turn on a per-request debug mode that hade even more info for a given operation about the planning process, like:

  • Number of paths computed
  • Number steps used
  • Number of edges checked
  • Number of subgraphs considered

Also the outputted operation plan for each subgraph is a little different than the client operation, so other helpful stuff includes:

  • Size of the subgraph operation in fields and bytes
  • Aliases or requires overrides used

@abernix abernix added the component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it. label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it. raised by user
Projects
None yet
Development

No branches or pull requests

3 participants