Skip to content

Commit 7fde6cc

Browse files
yuecchenrwalle61
authored andcommitted
fix #585 (#586)
1 parent 4722b24 commit 7fde6cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

probes/trace-probe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function isAppInnerRequire() {
263263
var trace = {};
264264
Error.captureStackTrace(trace);
265265
var callerLine = trace.stack.split('\n'); // This line contains 'node_modules' reference for generic libs
266-
return callerLine[6].indexOf('node_modules') == -1;
266+
return callerLine[6].indexOf('node_modules') == -1 && callerLine[6].indexOf('ibmapm') == -1;
267267
}
268268

269269
function instrumentMethods(moduleName, target) {

0 commit comments

Comments
 (0)