Skip to content

Commit

Permalink
chore: Revert "feat: IAST support for gRPC " (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitsuthar committed Mar 21, 2024
1 parent 6e78603 commit 88bf02c
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 680 deletions.
53 changes: 0 additions & 53 deletions lib/instrumentation-security/core/grpc-utils.js

This file was deleted.

284 changes: 0 additions & 284 deletions lib/instrumentation-security/hooks/grpc-js/nr-grpc.js

This file was deleted.

47 changes: 0 additions & 47 deletions lib/instrumentation-security/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,55 +200,8 @@ newrelic.instrumentWebframework({
})


newrelic.instrument({
type: 'conglomerate',
moduleName: '@grpc/grpc-js/build/src/server',
isEsm: true,
onRequire: require('./hooks/grpc-js/nr-grpc').wrapServer,
onError: function intrumentErrorHandler(err) {
logger.error(err.message, err.stack)
}
})

newrelic.instrument({
type: 'conglomerate',
moduleName: '@grpc/grpc-js/build/src/make-client',
isEsm: true,
onRequire: require('./hooks/grpc-js/nr-grpc').wrapMakeClient,
onError: function intrumentErrorHandler(err) {
logger.error(err.message, err.stack)
}
})

newrelic.instrument({
type: 'conglomerate',
moduleName: '@grpc/grpc-js/build/src/resolving-call',
isEsm: true,
onRequire: require('./hooks/grpc-js/nr-grpc').wrapStartResolve,
onError: function intrumentErrorHandler(err) {
logger.error(err.message, err.stack)
}
})

newrelic.instrument({
type: 'conglomerate',
moduleName: '@grpc/grpc-js/build/src/call-stream',
isEsm: true,
onRequire: require('./hooks/grpc-js/nr-grpc').wrapStartCall,
onError: function intrumentErrorHandler(err) {
logger.error(err.message, err.stack)
}
})

newrelic.instrument({
type: 'conglomerate',
moduleName: '@grpc/grpc-js',
isEsm: true,
onRequire: require('./hooks/grpc-js/nr-grpc').initialize,
onError: function intrumentErrorHandler(err) {
logger.error(err.message, err.stack)
}
})



Expand Down
Loading

0 comments on commit 88bf02c

Please sign in to comment.