You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version v4.4.0 commit 370 changed the federated tracing to not generate ftv1 traces by default. The result is that tracing information is never returned in the response.
That key ‘apollo-federation-include-trace with value ‘ftv1’ is not present in the GraphQLContext map even though HTTP header 'apollo-federation-include-trace': 'ftv1' is provided. The result is that federated tracing is not present in the response.
Hello 👋,
Federation JVM is a low level library that only relies on graphql-java and is unaware of any web frameworks (e.g. Spring). FederatedTracingInstrumentation relies on the appropriate value being set in the context - it is up to you to ensure that the values are populated from the incoming request (see README and spring-graphql example. ).
Tracing should only happen if ftv1 value is set and it should generally only be set on a small sample of transactions. Your workaround sets it always to true which means that every request would calculate the tracing information regardless whether router asks for it or not.
Would it make sense to update the federation-jvm-spring-example to have a Spring Boot example of how to configure the federated tracing? That repo is mentioned as 'Federation JVM example integrations' in the README you just posted. Or please reference spring-graphql example in the README as well.
Version v4.4.0 commit 370 changed the federated tracing to not generate ftv1 traces by default. The result is that tracing information is never returned in the response.
FederatedTracingInstrumentation#shouldTrace checks whether ExecutionInput#getGraphQLContext map contains the entry ‘apollo-federation-include-trace with value ‘ftv1’.
That key ‘apollo-federation-include-trace with value ‘ftv1’ is not present in the GraphQLContext map even though HTTP header 'apollo-federation-include-trace': 'ftv1' is provided. The result is that federated tracing is not present in the response.
Step to reproduce:
./gradlew :products-subgraph:bootRun
extensions": { "ftv1": "..." } }
is not presentThe workaround is custom shouldTracePredicate:
The text was updated successfully, but these errors were encountered: