# Elastic APM agent not instrumenting on simple Kafka producer

**URL:** <https://discuss.elastic.co/t/elastic-apm-agent-not-instrumenting-on-simple-kafka-producer/335641>\
**Category:** Elastic Agent\
**Created:** [June 9, 2023, 2:29pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-not-instrumenting-on-simple-kafka-producer/335641 "2023-06-09T14:29:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sangramreddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sangramreddy/32/122068_2.png) [@sangramreddy](https://discuss.elastic.co/u/sangramreddy)\
**Post date:** [June 9, 2023, 2:29pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-not-instrumenting-on-simple-kafka-producer/335641/1 "2023-06-09T14:29:42Z")

</div>

We are trying Elastic APM in our org. Our apps are all backend Java communicated over Kafka. We noticed that the out of the box instrumentation is not properly working.

So we created 3 basic java spring boot apps which communicates over Kafka.

App1 -\> sends messages to Topic 1  
App2 -\> reads from Topic 1 and writes to Topic 2  
App3 -\> reads from Topic 2

When attached to agent, only App2 and App3 are able to generate the transactions/spans. App1 which produces a message is unable to generate anything.

Is this a bug?

---

<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:** [July 7, 2023, 2:30pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-not-instrumenting-on-simple-kafka-producer/335641/2 "2023-07-07T14:30:35Z")

</div>

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