Skip to content

Commit

Permalink
#2 express get function name
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed May 27, 2021
1 parent 28139f2 commit 4e389f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/instrumentation/module/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ module.exports = function (agent, version, express) {
// }
// })

shimmer.wrap(express.application, 'get', function (original) {
return function () {
const result = original.apply(this, arguments)
return result
}
})

shimmer.wrap(express.Router, 'use', function (original) {
return function () {
const result = original.apply(this, arguments)
Expand Down

0 comments on commit 4e389f2

Please sign in to comment.