ApplicationInsights-node.js
ApplicationInsights-node.js copied to clipboard
No mongo activities tracked in app insights
package.json:
"applicationinsights": "^2.3.6",
"mongoose": "^6.6.1",
I am connecting my cosmosdb for mongodb API throught the connection string mongodb://xxx-cosmosdb-beta:xxxx
and after setting up the app insights client like:
AppInsights.setup(connectionString)
.setAutoDependencyCorrelation(true)
.setAutoCollectRequests(true)
.setAutoCollectPerformance(true, true)
.setAutoCollectExceptions(true)
.setAutoCollectDependencies(true)
.setAutoCollectConsole(true)
.setUseDiskRetryCaching(true)
.setSendLiveMetrics(true)
.start();
There is no mongo activities shows in my transaction request as dependencies
Can anyone help me on this?
@ALexander4295502 you can take a look at supported versions of MongoDB here, if you are using newer version of MongoDB you may consider to try out our latest SDK beta version, more info here
Thanks, @hectorhdzg the mongo server version of my cosmos db service is 4.2
. I will try the beta SDK to see if the issue can be resolved.
btw, do you know when the preview version of the SDK can be GA with fewer limitations?