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

Emit subgraph per-field metrics #6520

Open
joemccall86 opened this issue Jan 7, 2025 · 0 comments
Open

Emit subgraph per-field metrics #6520

joemccall86 opened this issue Jan 7, 2025 · 0 comments

Comments

@joemccall86
Copy link

joemccall86 commented Jan 7, 2025

Is your feature request related to a problem? Please describe.

We're using progressive override to migrate fields and objects from a legacy subgraph to a new one. We'd like to track the actual rollout and visualize it in a Grafana dashboard.

Describe the solution you'd like

We can currently emit custom instruments with the GraphQL field type and field name, and type name. I'd like to know the subgraph that resolved these fields. From there I can build out the dashboard.

Describe alternatives you've considered

  • Parsing the request/response body in a coprocessor (too complex due to the possibility of nesting)
  • Viewing the raw query plan in the coprocessor (again, the data wasn't easily extractable)
  • Emitting metrics in the individual subgraphs (wouldn't work, because the subgraphs are unaware of individual field-level overrides)
  • Retrieving the field-level metrics from the subgraph (would require compiling protobuf to create go-compatible structs. Comment at the top of the .proto file indicated that we should reach out for support before building on top of it.)

Additional context

We're not just talking about the percent(x) labels, but custom overrides for things like LaunchDarkly integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant