question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApolloTracing in federation is not supported

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
rafalpcommented, Jun 27, 2021

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.

2reactions
mandiwisecommented, Jun 25, 2021

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’s ApolloServerPluginInlineTrace class (as well as the related TraceTreeBuilder class). Those classes provide a nearly line-for-line re-implementation of the Node plugin in Python.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found