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 Sep 12, 2023
1 parent ac13f5e commit 0d25c43
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 0d25c43

Please sign in to comment.