# Spring Cloud Stream and Elastic Java APM Agent

**URL:** <https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229>\
**Category:** APM\
**Tags:** java\
**Created:** [October 17, 2023, 3:09pm UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229 "2023-10-17T15:09:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanPlacchetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanplacchetti/32/51652_2.png) [@SeanPlacchetti](https://discuss.elastic.co/u/SeanPlacchetti)\
**Post date:** [October 17, 2023, 3:09pm UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229/1 "2023-10-17T15:09:45Z")

</div>

Hello,

There's an older similar question here: [Does Elastic APM support Spring Cloud Stream?](https://discuss.elastic.co/t/does-elastic-apm-support-spring-cloud-stream/173620)

But that's four years old at this point. Can someone confirm whether there's support for APM tracing of RabbitMQ with Spring Cloud Stream yet?

Sean

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 18, 2023, 8:06am UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229/2 "2023-10-18T08:06:41Z")

</div>

Hi @SeanPlacchetti ,

Since the post you linked there have been several enhancements in Messaging / RabbitMQ instrumentations, we however haven't explicitly tested with spring cloud stream.

Therefore the best thing for you would be to try it out and report back whether you see any transactions and spans.

In case it doesn't work out of the box, the manual instrumentation approach in the linked post is still the route to go, You should however use [OpenTelemetry](https://www.elastic.co/guide/en/apm/agent/java/current/opentelemetry-bridge.html) instead of OpenTracing.

---

<div class="post-metadata">

**Author:** ![SeanPlacchetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanplacchetti/32/51652_2.png) [@SeanPlacchetti](https://discuss.elastic.co/u/SeanPlacchetti)\
**Post date:** [October 19, 2023, 10:55am UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229/3 "2023-10-19T10:55:26Z")

</div>

It seems like it worked! Probably good to update your documentation to include Spring Cloud Stream.

Sean

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 19, 2023, 2:04pm UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229/4 "2023-10-19T14:04:11Z")

</div>

In general we only list technologies as supported in our documentation when we have an integration test for the technology continuously verifying everything works as expected. So we likely won't explicitly mark spring-cloud-stream as supported in the docs without first having such a test in place.

However, oftentimes the technologies are built on top of already supported frameworks. Just like in your case, it's best to simply try it out.

---

<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:** [November 16, 2023, 2:05pm UTC](https://discuss.elastic.co/t/spring-cloud-stream-and-elastic-java-apm-agent/345229/5 "2023-11-16T14:05:04Z")

</div>

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