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

debug: Annotate GQL queries #1782

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bprusinowski
Copy link
Collaborator

Closes #1715

This PR adds a way to annotate GQL queries by passing a specific headers with querySource and queryReason, which are then displayed in the DebugPanel.

This should help understand which parts of the application require which data at which time, to be able to better optimize performance (or see which queries are e.g. not needed).

How to test

  1. Go to this link.
  2. Open a DebugPanel by clicking on a 🛠️ emoji in the right bottom corner.
  3. Click on DataCubePreview entry.
  4. ✅ See that there's a title and description on the right side, which informs about the origin of the query and why it was fired.

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool 🛑 Canceled (Inspect) Oct 3, 2024 0:01am

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

Successfully merging this pull request may close these issues.

Improve SPARQL / GQL debugging
1 participant