From 4e389f2e3fc8af1699f1cb104aef540478672531 Mon Sep 17 00:00:00 2001 From: Yongseok Kang Date: Fri, 14 May 2021 20:49:33 +0900 Subject: [PATCH] #2 express get function name --- lib/instrumentation/module/express.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/instrumentation/module/express.js b/lib/instrumentation/module/express.js index ce3cd4ef..b6b948b7 100644 --- a/lib/instrumentation/module/express.js +++ b/lib/instrumentation/module/express.js @@ -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)