@builtioflow/uhm-nodejs-agent
Advanced tools
Comparing version 10.16.5 to 10.16.6
@@ -19,8 +19,12 @@ "use strict"; | ||
logger.debug("inside wmio engine WorkerPoolExecutor interceptor..."); | ||
if (originModule && originModule.WorkerPoolExecutor && originModule.WorkerPoolExecutor.prototype && | ||
originModule.WorkerPoolExecutor.prototype.uhmStart && originModule.WorkerPoolExecutor.prototype.uhmStop) { | ||
instrumentation.enhanceMethod(originModule.WorkerPoolExecutor.prototype, "uhmStart", wrapUhmStart); | ||
instrumentation.enhanceMethod(originModule.WorkerPoolExecutor.prototype, "uhmStop", wrapUhmStop); | ||
} else { | ||
logger.error("Error instrumenting WorkerPoolExecutor module"); | ||
try { | ||
if (originModule && originModule.WorkerPoolExecutor && originModule.WorkerPoolExecutor.prototype && | ||
originModule.WorkerPoolExecutor.prototype.uhmStart && originModule.WorkerPoolExecutor.prototype.uhmStop) { | ||
instrumentation.enhanceMethod(originModule.WorkerPoolExecutor.prototype, "uhmStart", wrapUhmStart); | ||
instrumentation.enhanceMethod(originModule.WorkerPoolExecutor.prototype, "uhmStop", wrapUhmStop); | ||
} else { | ||
logger.error("Error instrumenting WorkerPoolExecutor module. Methods not found..."); | ||
} | ||
} catch (error) { | ||
logger.error("Error instrumenting WorkerPoolExecutor module. Error: %o", error); | ||
} | ||
@@ -221,2 +225,4 @@ | ||
} | ||
return originModule; | ||
}; |
@@ -16,8 +16,12 @@ "use strict"; | ||
logger.debug("inside wmio engine WTMAbstract interceptor..."); | ||
if (originModule && originModule.WTMAbstract && originModule.WTMAbstract.prototype && | ||
originModule.WTMAbstract.prototype.billStarted && originModule.WTMAbstract.prototype.billStopped) { | ||
instrumentation.enhanceMethod(originModule.WTMAbstract.prototype, "billStarted", wrapBillStarted); | ||
instrumentation.enhanceMethod(originModule.WTMAbstract.prototype, "billStopped", wrapBillStopped); | ||
} else { | ||
logger.error("Error instrumenting WTMAbstract module"); | ||
try { | ||
if (originModule && originModule.WTMAbstract && originModule.WTMAbstract.prototype && | ||
originModule.WTMAbstract.prototype.billStarted && originModule.WTMAbstract.prototype.billStopped) { | ||
instrumentation.enhanceMethod(originModule.WTMAbstract.prototype, "billStarted", wrapBillStarted); | ||
instrumentation.enhanceMethod(originModule.WTMAbstract.prototype, "billStopped", wrapBillStopped); | ||
} else { | ||
logger.error("Error instrumenting WTMAbstract module. Methods not found..."); | ||
} | ||
} catch (error) { | ||
logger.error("Error instrumenting WTMAbstract module. Error: %o", error); | ||
} | ||
@@ -24,0 +28,0 @@ |
{ | ||
"name": "@builtioflow/uhm-nodejs-agent", | ||
"version": "10.16.5", | ||
"version": "10.16.6", | ||
"description": "A nodejs agent for skyapm agents", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
594414
15934