microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
323 stars 141 forks source link

No mongo activities tracked in app insights #1049

Open zh3ngyuan opened 1 year ago

zh3ngyuan commented 1 year ago

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?

hectorhdzg commented 1 year ago

@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

zh3ngyuan commented 1 year ago

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?