# HowTo instrument mongoDB calls with apm when using mongo atlas

**URL:** <https://discuss.elastic.co/t/howto-instrument-mongodb-calls-with-apm-when-using-mongo-atlas/191782>\
**Category:** APM\
**Tags:** java\
**Created:** [July 23, 2019, 10:04am UTC](https://discuss.elastic.co/t/howto-instrument-mongodb-calls-with-apm-when-using-mongo-atlas/191782 "2019-07-23T10:04:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfouquet](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pfouquet](https://discuss.elastic.co/u/pfouquet)\
**Post date:** [July 23, 2019, 10:04am UTC](https://discuss.elastic.co/t/howto-instrument-mongodb-calls-with-apm-when-using-mongo-atlas/191782/1 "2019-07-23T10:04:03Z")

</div>

**APM Agent language and version** :  
'co.elastic.apm:apm-opentracing:1.7.0',  
'co.elastic.apm:apm-agent-api:1.7.0'  
Hello,  
We are using the mongo atlas db as cloud service, so we can't instrument apm an server side.  
How can we instrument apm on client side?  
We are using the newest mongo java driver 3.10 on clientside.  
Kind regards  
Peter

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [July 24, 2019, 11:19am UTC](https://discuss.elastic.co/t/howto-instrument-mongodb-calls-with-apm-when-using-mongo-atlas/191782/2 "2019-07-24T11:19:01Z")

</div>

Hi Peter,

Thanks for this followup question 🙂  
Unfortunately, we currently don't support mongo DB clients. You are welcome to open an issue in our GitHub issue so that people and vote it up. It is on our radar, but not for the immediate term and no concrete plans.

For the mean time you can either use the public API to trace your code that uses the MongoDB client, look for an OpenTracing instrumentation (like [this one](https://github.com/opentracing-contrib/java-mongo-driver)?) or write a MongoDB instrumentation plugin 🙂

I hope this helps.  
Eyal.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2019, 7:19am UTC](https://discuss.elastic.co/t/howto-instrument-mongodb-calls-with-apm-when-using-mongo-atlas/191782/3 "2019-08-14T07:19:13Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
