apollo-tracing
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -18,2 +18,4 @@ "use strict"; | ||
return resolverCalls.map(resolverCall => { | ||
const startOffset = durationHrTimeToNanos(resolverCall.startOffset); | ||
const duration = resolverCall.endOffset ? durationHrTimeToNanos(resolverCall.endOffset) - startOffset : 0; | ||
return { | ||
@@ -24,4 +26,4 @@ path: graphql_1.responsePathAsArray(resolverCall.path), | ||
returnType: resolverCall.returnType.toString(), | ||
startOffset: durationHrTimeToNanos(resolverCall.startOffset), | ||
duration: resolverCall.endOffset ? durationHrTimeToNanos(resolverCall.endOffset) : 0, | ||
startOffset, | ||
duration, | ||
}; | ||
@@ -28,0 +30,0 @@ }); |
{ | ||
"name": "apollo-tracing", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Collect and expose trace data for GraphQL requests", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
12937
202