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

[Question] Is MongoDB 4 supported or planned?

Open lmolkova opened this issue 3 years ago • 5 comments

I'm running this sample https://github.com/Azure-Samples/todo-nodejs-mongo/tree/main/src/api, which uses Cosmos DB service via mongoose (and mongodb v4), and has Application Insights SDK set up, but I don't see any dependencies tracked.

It seems mongodb v4 is not supported: https://github.com/microsoft/node-diagnostic-channel/blob/b334b96247b3eb3cd3d198a8a80f7c4f98e7b2b8/src/diagnostic-channel-publishers/src/mongodb.pub.ts#L190-L201

Is it the case and if so, is it something the team considers supporting at some point?

lmolkova avatar May 06 '22 00:05 lmolkova

We are working on enabling usage of OpenTelemetry SDK internally in Application Insights SDK that will be in preview soon, MongoDB 4 is currently supported as experimental in OpenTelemetry

hectorhdzg avatar May 06 '22 21:05 hectorhdzg

@hectorhdzg thank you for the info!

lmolkova avatar May 06 '22 22:05 lmolkova

Ah excellent, looks like tedious is in there as well :D

DevRCRun avatar May 09 '22 09:05 DevRCRun

Hi

@hectorhdzg Any news regarding this issue ? :)

ArtemisMucaj avatar Nov 04 '22 14:11 ArtemisMucaj

@ArtemisMucaj you should be able to get telemetry from MongoDB 4 using newer beta version of this SDK, more info here

hectorhdzg avatar Nov 17 '22 17:11 hectorhdzg