@@ -6,8 +6,8 @@ import com.apollographql.apollo.api.ExecutionContext
66import com.apollographql.apollo.execution.ExecutableSchema
77import com.apollographql.apollo.execution.GraphQLResponse
88import com.apollographql.apollo.execution.InMemoryPersistedDocumentCache
9- // import com.apollographql.execution.reporting.ApolloReportingInstrumentation
10- // import com.apollographql.execution.reporting.ApolloReportingOperationContext
9+ import com.apollographql.execution.reporting.ApolloReportingInstrumentation
10+ import com.apollographql.execution.reporting.ApolloReportingOperationContext
1111import com.apollographql.execution.spring.apolloSandboxRoutes
1212import com.apollographql.execution.spring.parseAsGraphQLRequest
1313import com.example.ServiceExecutableSchemaBuilder
@@ -112,7 +112,7 @@ class DefaultApplication {
112112 if (apolloKey != null ) {
113113 println (" Enabling Apollo Reporting" )
114114 }
115- // addInstrumentation(ApolloReportingInstrumentation(apolloKey))
115+ addInstrumentation(ApolloReportingInstrumentation (apolloKey))
116116 }
117117 .build()
118118 }
@@ -166,11 +166,11 @@ class DefaultApplication {
166166 val executionContext = UidContext (uid) +
167167 SourceContext (source) +
168168 ConferenceContext (conference) +
169- maxAgeContext
170- // ApolloReportingOperationContext(
171- // serverRequest.headers().header("apollographql-client-name").firstOrNull(),
172- // serverRequest.headers().header("apollographql-client-version").firstOrNull(),
173- // )
169+ maxAgeContext +
170+ ApolloReportingOperationContext (
171+ serverRequest.headers().header(" apollographql-client-name" ).firstOrNull(),
172+ serverRequest.headers().header(" apollographql-client-version" ).firstOrNull(),
173+ )
174174
175175 val graphqlRequestResult = serverRequest.parseAsGraphQLRequest()
176176 if (! graphqlRequestResult.isSuccess) {
0 commit comments