Skip to content

Commit ffd3585

Browse files
committed
fix(instrumentation): fix version checking
1 parent 1a75fd4 commit ffd3585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentations/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function instrumentModule (target, instrumentation, agent, load) {
7979
var pkg
8080
if (target.package) {
8181
try {
82-
pkg = Module._load.call(this, path.join(target.name, 'package.json'), this)
82+
pkg = Module._load.call(this, path.join(target.name, 'package.json'), loadArguments[1])
8383
} catch (err) {
8484
debug('#instrumentModule', format('[Warning] cannot load `[%s] package.json`, ' +
8585
'although it was requested by the instrumentation group. Instrumentation might not work properly. ' +

0 commit comments

Comments
 (0)