ApplicationInsights-node.js icon indicating copy to clipboard operation
ApplicationInsights-node.js copied to clipboard

No mongo activities tracked in app insights

Open zh3ngyuan opened this issue 2 years ago • 2 comments

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?

zh3ngyuan avatar Dec 21 '22 20:12 zh3ngyuan

@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

hectorhdzg avatar Jan 05 '23 18:01 hectorhdzg

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?

zh3ngyuan avatar Jan 05 '23 19:01 zh3ngyuan