@newrelic/apollo-server-plugin
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -104,4 +104,5 @@ /* | ||
if (shouldIgnoreTransaction(resolveContext.operation, config, logger)) { | ||
const transaction = instrumentationApi.tracer.getTransaction() | ||
if (transaction) { | ||
const activeSegment = instrumentationApi.getActiveSegment() | ||
if (activeSegment) { | ||
const transaction = activeSegment.transaction | ||
transaction.setForceIgnore(true) | ||
@@ -108,0 +109,0 @@ } |
@@ -32,3 +32,4 @@ /* | ||
noticeError(instrumentationApi, error) { | ||
const transaction = instrumentationApi.tracer.getTransaction() | ||
const activeSegment = instrumentationApi.getActiveSegment() | ||
const transaction = activeSegment && activeSegment.transaction | ||
instrumentationApi.agent.errors.add(transaction, error) | ||
@@ -35,0 +36,0 @@ } |
{ | ||
"name": "@newrelic/apollo-server-plugin", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Apollo Server plugin that adds New Relic Node.js agent instrumentation.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -130,7 +130,7 @@ [![Community Plus header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus) | ||
// Sub-Graph server index.js | ||
const { buildFederatedSchema } = require('@apollo/federation'); | ||
const { buildSubgraphSchema } = require('@apollo/federation'); | ||
const plugin = require('@newrelic/apollo-server-plugin') | ||
const server = new ApolloServer({ | ||
schema: buildFederatedSchema([{ typeDefs, resolvers }]), | ||
schema: buildSubgraphSchema([{ typeDefs, resolvers }]), | ||
plugins: [ plugin ] | ||
@@ -137,0 +137,0 @@ }); |
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
47551
491