graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

[graphiql] trace extension data viewer

Open gabrielcsapo opened this issue 3 years ago • 5 comments

👋 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 avatar Dec 13 '22 22:12 gabrielcsapo

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

gabrielcsapo avatar Dec 21 '22 22:12 gabrielcsapo

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.

thomasheyenbrock avatar Feb 03 '23 12:02 thomasheyenbrock

Would love to see this.

clayrisser avatar Jan 16 '24 13:01 clayrisser

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

acao avatar Jan 17 '24 07:01 acao