nuwave / lighthouse

A framework for serving GraphQL from Laravel
https://lighthouse-php.com
MIT License
3.36k stars 437 forks source link

Sending tracing to Apollo Studio #1629

Open benkingcode opened 3 years ago

benkingcode commented 3 years ago

I can see that Lighthouse has runtime support for tracing. Is there any way to push this data to Apollo Studio?

andrewmclagan commented 2 years ago

Any movement on this, there is a settled standard now from Apollo: FTV1. I would be happy to pick this up.

spawnia commented 2 years ago

@andrewmclagan feel free to create a pull request.

This can probably be integrated in the tracing module, see https://github.com/nuwave/lighthouse/tree/master/src/Tracing. It should be an optional feature that is activated through a configuration option in lighthouse.php. We have to be careful to report in a way that does not negatively impact reliability (what if Apollo Studio goes down?) or response time (push data after sending the response).