diff --git a/lib/instrumentation-security/index.js b/lib/instrumentation-security/index.js index 47ed39d..4bd32a1 100644 --- a/lib/instrumentation-security/index.js +++ b/lib/instrumentation-security/index.js @@ -244,3 +244,47 @@ newrelic.instrument({ } }) +newrelic.instrument({ + moduleName: 'graphql/execution/execute', + isEsm: true, + onRequire: require('./hooks/graphql/nr-graphql'), + onError: function intrumentErrorHandler(err) { + logger.error(err.message, err.stack) + } +}) + +newrelic.instrument({ + moduleName: 'router', + isEsm: true, + onRequire: require('./hooks/express/nr-express').wrapRouter, + onError: function intrumentErrorHandler(err) { + logger.error(err.message, err.stack) + } +}) + +newrelic.instrument({ + moduleName: 'crypto', + onRequire: require('./hooks/crypto/nr-crypto'), + onError: function intrumentErrorHandler(err) { + logger.error(err.message, err.stack) + } +}) + +newrelic.instrumentWebframework({ + moduleName: 'next/dist/server/next-server', + isEsm: true, + onRequire: require('./hooks/nextjs/nr-next'), + onError: function intrumentErrorHandler(err) { + logger.error(err.message, err.stack) + } +}) + +newrelic.instrument({ + moduleName: 'vm', + isEsm: true, + onRequire: require('./hooks/native/nr-vm'), + onError: function intrumentErrorHandler(err) { + logger.error(err.message, err.stack) + } +}) +