Skip to content

Commit

Permalink
pinpoint-apm#87 remove no needs callstack
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Sep 12, 2023
1 parent 25467a4 commit c871339
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/instrumentation/module/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ module.exports = function (agent, version, express) {

shimmer.wrap(express.Router, 'route', function (original) {
return function () {
const callstack = {}
Error.captureStackTrace(callstack)
const result = original.apply(this, arguments)
if (this.stack && this.stack.length) {
// log.debug('>> [Express] express.Router.route ', this.stack[this.stack.length - 1])
Expand Down

0 comments on commit c871339

Please sign in to comment.