Skip to content

Conversation

@cgriego
Copy link

@cgriego cgriego commented Sep 10, 2025

When using Apollo Federated tracing functionality with Apollo Router, Apollo Router did not report the subgraph tracing data to Apollo Studio. Based on #29 which claims the tracing should use Base64.strict_encode64 so that in JS / Apollo Gateway the decoding is faster, I tried using it with Router and after Router would successfully report the trace data to Apollo Studio.

```
The implicit block expectation syntax is deprecated, you should pass a block rather than an argument to `expect` to use the provided block expectation matcher or the matcher must implement `supports_value_expectations?`. e.g  `expect { value }.to raise /The _entities resolver tried to load an entity for type "TypeNotInSchema"/` not `expect(value).to raise /The _entities resolver tried to load an entity for type "TypeNotInSchema"/`
```
Apollo Router isn't reporting federated trace data to Apollo Studio when
using `Base64.encode64`, which uses newlines, but does when using strict
encoding which doesn't use newlines.
@cgriego cgriego changed the title Fix Apollo Federated Tracing (ftv1) with Apollo Router fix: Apollo Federated Tracing (ftv1) with Apollo Router Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant