graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
16.09k stars 1.72k forks source link

[graphiql] trace extension data viewer #2973

Open gabrielcsapo opened 1 year ago

gabrielcsapo commented 1 year ago

👋 Just asking a quick question on if this is something that we would want to support in graphiql

In apollo playground there was a trace viewer panel. Is this something that we would be okay supported in the official package?

Screen Shot 2022-12-13 at 2 47 34 PM

For more details on the trace extension data you can find that here https://github.com/apollographql/apollo-tracing#example

A ticket in graphql-playground existed for this https://github.com/graphql/graphql-playground/issues/241 and the implementation of that was added https://github.com/graphql/graphql-playground/commit/0e2f56d10167b5ac7188c68f993caee617a8dbbe.

gabrielcsapo commented 1 year ago

thoughts @thomasheyenbrock, we are using this at linkedin and would really like a way to view the traces from our graphiql instances

thomasheyenbrock commented 1 year ago

Hey @gabrielcsapo 👋 this sounds like a nice use-case for a plugin. The plugin API is currently limited to showing custom UI in the "plugin pane" (which refers to the left portion of the UI where also the docs are shown). There have been ideas around also enabling plugins to be shown beneath the response, but this workstream is yet to be kicked-off.

clayrisser commented 10 months ago

Would love to see this.

acao commented 9 months ago

hey, yes we still need to extend the plugin api to allow panes in other places. I plan to first refactor graphiql to use a better state management approach before extending the plugin API. Would love to have a plugin like this ready by summer