# Setup APM distributed tracing to work with kafka and multiple node services

**URL:** <https://discuss.elastic.co/t/setup-apm-distributed-tracing-to-work-with-kafka-and-multiple-node-services/216716>\
**Category:** APM\
**Tags:** java, nodejs\
**Created:** [January 27, 2020, 7:18pm UTC](https://discuss.elastic.co/t/setup-apm-distributed-tracing-to-work-with-kafka-and-multiple-node-services/216716 "2020-01-27T19:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elhen15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elhen15/32/61520_2.png) [@Elhen15](https://discuss.elastic.co/u/Elhen15)\
**Post date:** [January 27, 2020, 7:18pm UTC](https://discuss.elastic.co/t/setup-apm-distributed-tracing-to-work-with-kafka-and-multiple-node-services/216716/1 "2020-01-27T19:18:03Z")

</div>

Hi there,

I currently have a micro-services architecture composed of NodeJS micro-services and Spring-boot micro-services. The services are communicating synchronously via Rest and asynchronously via Kafka messages.

While the HTTP communication is fully covered by the Elastic APM - the Kafka communication is not covered at all - not the nodeJs agent and neither Java agent.

Does anyone know how to make it works?  
Thanks

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [January 28, 2020, 7:55am UTC](https://discuss.elastic.co/t/setup-apm-distributed-tracing-to-work-with-kafka-and-multiple-node-services/216716/2 "2020-01-28T07:55:53Z")

</div>

Hi @Elhen15,

Kafka support has been added recently to the Java agent : [https://github.com/elastic/apm-agent-java/pull/981](https://github.com/elastic/apm-agent-java/pull/981), but is not released yet.

Regarding NodeJS agent, I'm not familiar with it, but there are quite a few issues and references to `kafka-node` in the repository: [https://github.com/elastic/apm-agent-nodejs/search?q=kafka&type=Issues](https://github.com/elastic/apm-agent-nodejs/search?q=kafka&type=Issues) which suggest there is at least partial support of it, do you use this client library or another one ?

---

<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:** [February 18, 2020, 3:55am UTC](https://discuss.elastic.co/t/setup-apm-distributed-tracing-to-work-with-kafka-and-multiple-node-services/216716/3 "2020-02-18T03:55:54Z")

</div>

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