apollo-server-core
Advanced tools
Comparing version 1.0.3-tracing.2 to 1.0.3-tracing.3
@@ -29,6 +29,7 @@ "use strict"; | ||
logFunction({ action: LogAction.request, step: LogStep.start }); | ||
var context = options.context || {}; | ||
var traceCollector; | ||
if (options.tracing) { | ||
traceCollector = new apollo_tracing_1.TraceCollector(); | ||
options.context._traceCollector = traceCollector; | ||
context._traceCollector = traceCollector; | ||
traceCollector.requestDidStart(); | ||
@@ -90,3 +91,3 @@ apollo_tracing_1.instrumentSchemaForTracing(options.schema); | ||
logFunction({ action: LogAction.execute, step: LogStep.start }); | ||
return graphql_1.execute(options.schema, documentAST, options.rootValue, options.context, options.variables, options.operationName).then(function (result) { | ||
return graphql_1.execute(options.schema, documentAST, options.rootValue, context, options.variables, options.operationName).then(function (result) { | ||
logFunction({ action: LogAction.execute, step: LogStep.end }); | ||
@@ -93,0 +94,0 @@ logFunction({ action: LogAction.request, step: LogStep.end }); |
{ | ||
"name": "apollo-server-core", | ||
"version": "1.0.3-tracing.2", | ||
"version": "1.0.3-tracing.3", | ||
"description": "Core engine for Apollo GraphQL server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32732
461