Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@newrelic/apollo-server-plugin

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/apollo-server-plugin - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

5

lib/create-plugin.js

@@ -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 @@ }

3

lib/error-helper.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc