@newrelic/apollo-server-plugin
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -74,2 +74,7 @@ /* | ||
if (!requestParent) { | ||
logger.trace('No active segment found at query start. Not recording.') | ||
return null | ||
} | ||
// We do not set to active here as batched queries will hit this | ||
@@ -82,2 +87,8 @@ // back to back and we'd prefer those not nest with each-other. | ||
) | ||
if (!operationSegment) { | ||
logger.trace('Operation segment was not created. Not recording.') | ||
return null | ||
} | ||
operationSegment.start() | ||
@@ -128,2 +139,11 @@ | ||
if (!resolverSegment) { | ||
logger.trace( | ||
'Resolver segment was not created (%s).', | ||
formattedPath | ||
) | ||
return null | ||
} | ||
resolverSegment.start() | ||
@@ -130,0 +150,0 @@ instrumentationApi.setActiveSegment(resolverSegment) |
{ | ||
"name": "@newrelic/apollo-server-plugin", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Apollo Server plugin that adds New Relic Node.js agent instrumentation.", | ||
@@ -5,0 +5,0 @@ "main": "/src/index.js", |
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
39807
386