Azure Functions with node.js, Azure Service Bus and Apps Insight - Error on setup of AppsInsights -


when use azure module (to query service bus) , application insights module, following error upon initialization of appsinsight:

system.exception : error: zone loaded. @ new error (native) @ error.appinsightsasynccorrelatederrorwrapper

the code replicate simple:

var azure = require('azure'); var servicebusservice = azure.createservicebusservice(<service bus endpoint>);  const appinsights = require("applicationinsights"); appinsights.setup(<apps insight key>).start(); 

the error thrown on last line , assume result of dependencies overlapping between azure , applicationinsights module.

any suggestions how overcome appreciated!

according description, created javascript httptrigger function check issue. used applicationinsights (version 0.22.0) , reproduce issue follows:

enter image description here

package.json:

{   "name": "functions-app-insights",   "version": "1.0.0",   "description": "",   "main": "index.js",   "scripts": {     "test": "echo \"error: no test specified\" && exit 1"   },   "author": "",   "license": "isc",   "dependencies": {     "applicationinsights": "^0.22.0",     "node-uuid": "^1.4.8"   } } 

then checked applicationinsights package , call appinsights.setautodependencycorrelation(false), work expected follows:

enter image description here


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -