The recent release of the5.2.0 Java driver adds instrumentation for mongo-java-driver clients created using the MongoClients class. It mentions that you do not currently support the asynchronous drivers. Despite this, async MongoDB calls are still being kind-of instrumented, but very clearly wrong.
Because of this, when upgrading to 5.2.0 our transaction time on a service which uses the async java driver looks like this:
The only option we have right now is to disable MongoDB instrumentation altogether. It would be great to have support for the async driver as database timings are very important to our app.
New Relic Edit
- I want this too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.