# How to use Java apm agent recording flag in spring cloud?

**URL:** <https://discuss.elastic.co/t/how-to-use-java-apm-agent-recording-flag-in-spring-cloud/286568>\
**Category:** APM\
**Tags:** java\
**Created:** [October 13, 2021, 5:24am UTC](https://discuss.elastic.co/t/how-to-use-java-apm-agent-recording-flag-in-spring-cloud/286568 "2021-10-13T05:24:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rotihaw282](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rotihaw282](https://discuss.elastic.co/u/rotihaw282)\
**Post date:** [October 13, 2021, 5:24am UTC](https://discuss.elastic.co/t/how-to-use-java-apm-agent-recording-flag-in-spring-cloud/286568/1 "2021-10-13T05:24:22Z")

</div>

Hi, I need clarification on how to disable the java APM agent in the spring cloud.

I am running java microservices with a single server and multiple apps.

I tried with recording=false, enable=false It won't work for me in my cloud locally working fine for me. If any extra configuration I need could help for us

---

<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 3, 2021, 1:24am UTC](https://discuss.elastic.co/t/how-to-use-java-apm-agent-recording-flag-in-spring-cloud/286568/2 "2021-11-03T01:24:41Z")

</div>

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