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

Tracing capabilities from frontend to database, thru Hasura #10223

Open
Aarbel opened this issue May 3, 2024 · 1 comment
Open

Tracing capabilities from frontend to database, thru Hasura #10223

Aarbel opened this issue May 3, 2024 · 1 comment
Labels
k/enhancement New feature or improve an existing feature

Comments

@Aarbel
Copy link

Aarbel commented May 3, 2024

Hi Hasura team,

is there a way to have query comments inside our potsgresql logs function of the graphql calls performed in the frontend (best would be to bring this comment from the frontent).

The goal is to have much more tracing of the origin of the queries before on our database.

Thanks a lot for your help !

Cf https://discord.com/channels/407792526867693568/1235882269168636015

@Aarbel Aarbel added the k/enhancement New feature or improve an existing feature label May 3, 2024
@Aarbel
Copy link
Author

Aarbel commented May 3, 2024

Maybe a solution could be using custom directives in the graphql query, that would be converted by Hasura to SQL comments in the sql query generated by Hasura.

Example

query myNewQuery() @comment(value: "FetchingUsers") {
  users() {
    id
    full_name
    email
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant