You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2019/10/10 13:51:28 UTC
[unomi] 20/26: UNOMI-180 CDP Specification implementation -
Integrate Apollo Tracing support
This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch UNOMI-180-CXS-GRAPHQLAPI
in repository https://gitbox.apache.org/repos/asf/unomi.git
commit bbe24c22e74f77aacba786870fa8922a0bf91f58
Author: sergehuber <sh...@jahia.com>
AuthorDate: Mon May 13 14:44:04 2019 +0200
UNOMI-180 CDP Specification implementation
- Integrate Apollo Tracing support
---
.../main/java/org/apache/unomi/graphql/internal/CDPSDLServletImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/internal/CDPSDLServletImpl.java b/graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/internal/CDPSDLServletImpl.java
index d56c0d7..5abb6fb 100644
--- a/graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/internal/CDPSDLServletImpl.java
+++ b/graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/internal/CDPSDLServletImpl.java
@@ -24,6 +24,7 @@ import graphql.ExecutionInput;
import graphql.ExecutionResult;
import graphql.GraphQL;
import graphql.TypeResolutionEnvironment;
+import graphql.execution.instrumentation.tracing.TracingInstrumentation;
import graphql.introspection.IntrospectionQuery;
import graphql.scalars.ExtendedScalars;
import graphql.schema.*;
@@ -179,6 +180,7 @@ public class CDPSDLServletImpl extends HttpServlet {
RuntimeWiring wiring = buildRuntimeWiring();
GraphQLSchema graphQLSchema = schemaGenerator.makeExecutableSchema(typeRegistry, wiring);
graphQL = GraphQL.newGraphQL(graphQLSchema)
+ .instrumentation(new TracingInstrumentation())
.build();
objectMapper = new ObjectMapper();