@instana/core
Advanced tools
Comparing version 1.108.0 to 1.109.0
{ | ||
"name": "@instana/core", | ||
"version": "1.108.0", | ||
"version": "1.109.0", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -136,3 +136,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "7fc0b5e5acc03cbce059778d8b85d4e862b56470" | ||
"gitHead": "dca1dfe7919bb91a3b66d6fbe085c71e952ea3ed" | ||
} |
@@ -18,3 +18,3 @@ 'use strict'; | ||
// This instruments the Aggregate object exported by Mongoose. The Mongoose library uses the standard MongoDB driver | ||
// under the hood and thus would not need custom instrumentation to capture MongoDB exit spans. But: It's Aggregate | ||
// under the hood and thus would not need custom instrumentation to capture MongoDB exit spans. But: Its Aggregate | ||
// object is a custom thenable, and async_hooks currently does not propagate the async context for those (only for | ||
@@ -21,0 +21,0 @@ // actual promise instances). |
@@ -21,4 +21,2 @@ 'use strict'; | ||
function patchedModuleLoad(moduleName) { | ||
let i; | ||
// First attempt to always get the module via the original implementation | ||
@@ -56,3 +54,3 @@ // as this action may fail. The original function populates the module cache. | ||
if (applicableByModuleNameTransformers && cacheEntry.appliedByModuleNameTransformers.indexOf(moduleName) === -1) { | ||
for (i = 0; i < applicableByModuleNameTransformers.length; i++) { | ||
for (let i = 0; i < applicableByModuleNameTransformers.length; i++) { | ||
const transformerFn = applicableByModuleNameTransformers[i]; | ||
@@ -88,3 +86,3 @@ if (typeof transformerFn === 'function') { | ||
if (!cacheEntry.byFileNamePatternTransformersApplied) { | ||
for (i = 0; i < byFileNamePatternTransformers.length; i++) { | ||
for (let i = 0; i < byFileNamePatternTransformers.length; i++) { | ||
if (byFileNamePatternTransformers[i].pattern.test(filename)) { | ||
@@ -91,0 +89,0 @@ cacheEntry.moduleExports = |
403323
87
10915