ApolloTracing in federation is not supported
See original GitHub issueI believe that apollotracing extension we have is not using the correct specs. It seems the tracing should be base64 encoded on protobuf and then put as value to the key ftv1
under extensions
as described here https://www.apollographql.com/docs/federation/metrics/
Right now it just returns a json with the key tracing
under extensions
so apollo fails to parse it
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Federated trace data - Apollo GraphQL Docs
Apollo Federation supports sending federated traces from your graph router, which are constructed from timing and error information provided by your subgraphs.
Read more >Apollo Tracing
Apollo Tracing exposes basic performance data of GraphQL queries: Query execution time and execution time of individual resolvers.
Read more >Migration from Apollo Server – GraphQL Yoga
If you are using Apollo Tracing, install @envelop/use-apollo-tracing ... GraphQL Yoga does not support batched queries for the following reasons:.
Read more >apollo-server-env | Yarn - Package Manager
Dropped built-in partial support for subscriptions via the subscriptions-transport-ws package. This integration did not support many Apollo Server features, and ...
Read more >Apollo Tracing - Hot Chocolate v11
Apollo Tracing is a performance tracing specification for GraphQL servers. ... Never, Apollo Tracing is disabled; this is the default value.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @prasek and @mandiwise, thank you so much for reaching out and providing example implementation! ❤️
I’ll bring this up on our side next week so we can discuss where we want to go with that.
Hello @nilansaha and @rafalp, I’m also from Apollo and have an example of basic support for federated tracing implemented via an Ariadne extension here:
https://github.com/apollosolutions/ariadne-federated-traces
I mostly write Python on a recreational basis only, so I’m sure it can be improved upon. But hopefully the code will be a useful point of reference for you. The
InlineTraceExtension
class is based on Apollo Server’sApolloServerPluginInlineTrace
class (as well as the relatedTraceTreeBuilder
class). Those classes provide a nearly line-for-line re-implementation of the Node plugin in Python.